From cf84bc9cccbd5dc2fceae1a81c579e41be3c9a06 Mon Sep 17 00:00:00 2001 From: Tai Ly Date: Thu, 7 Sep 2023 20:49:09 +0000 Subject: [reference_model] Support StatefulOps and the tests for CallOnceOp Signed-off-by: Jerry Ge Change-Id: I03cb878736ccd7e1f5e1f780d7171949a19a9de2 --- examples/test_stateful_op/desc.json | 16 ++++++++++++++++ examples/test_stateful_op/placeholder_0.npy | Bin 0 -> 132 bytes examples/test_stateful_op/test_variable_add.tosa | Bin 0 -> 616 bytes examples/test_stateful_op/variable_0.npy | Bin 0 -> 132 bytes 4 files changed, 16 insertions(+) create mode 100644 examples/test_stateful_op/desc.json create mode 100644 examples/test_stateful_op/placeholder_0.npy create mode 100644 examples/test_stateful_op/test_variable_add.tosa create mode 100644 examples/test_stateful_op/variable_0.npy (limited to 'examples') diff --git a/examples/test_stateful_op/desc.json b/examples/test_stateful_op/desc.json new file mode 100644 index 0000000..1f1459f --- /dev/null +++ b/examples/test_stateful_op/desc.json @@ -0,0 +1,16 @@ +{ + "tosa_file": "test_variable_add.tosa", + "ifm_name": [ + "TosaInput_0" + ], + "ifm_file": [ + "placeholder_0.npy" + ], + "variable_name": [ + "Variable_0" + ], + "variable_file": [ + "variable_0.npy" + ], + "expected_failure": false +} \ No newline at end of file diff --git a/examples/test_stateful_op/placeholder_0.npy b/examples/test_stateful_op/placeholder_0.npy new file mode 100644 index 0000000..f9688e6 Binary files /dev/null and b/examples/test_stateful_op/placeholder_0.npy differ diff --git a/examples/test_stateful_op/test_variable_add.tosa b/examples/test_stateful_op/test_variable_add.tosa new file mode 100644 index 0000000..2be3044 Binary files /dev/null and b/examples/test_stateful_op/test_variable_add.tosa differ diff --git a/examples/test_stateful_op/variable_0.npy b/examples/test_stateful_op/variable_0.npy new file mode 100644 index 0000000..c183a15 Binary files /dev/null and b/examples/test_stateful_op/variable_0.npy differ -- cgit v1.2.1