diff options
author | Eric Kunze <eric.kunze@arm.com> | 2020-10-13 16:11:07 -0700 |
---|---|---|
committer | Kevin Cheng <kevin.cheng@arm.com> | 2020-10-14 11:11:43 -0700 |
commit | e5e2676409a936431f87d31fb74d825257b20804 (patch) | |
tree | 304d93d993ef6417b02a515025f9030367682774 /examples/test_add_1x4x4x4_f32 | |
parent | 88b7860f180f91b5b66764c61cfd97d8bc53cece (diff) | |
download | reference_model-e5e2676409a936431f87d31fb74d825257b20804.tar.gz |
Initial checkin of TOSA reference_model and tests
Change-Id: I2f8e7fa63e2ae40203e57d2cc8814bde3b312cb6
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'examples/test_add_1x4x4x4_f32')
-rw-r--r-- | examples/test_add_1x4x4x4_f32/InputTensor-tf0.npy | bin | 0 -> 192 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/InputTensor-tf1.npy | bin | 0 -> 384 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/InputTensor-tflite0.npy | bin | 0 -> 192 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/InputTensor-tflite1.npy | bin | 0 -> 384 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/flatbuffer-tf/test_add_1x4x4x4_f32.tosa | bin | 0 -> 644 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/flatbuffer-tflite/test_add_1x4x4x4_f32.tosa | bin | 0 -> 676 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/placeholder_0.npy | bin | 0 -> 192 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/placeholder_1.npy | bin | 0 -> 384 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/ref_ofm.npy | bin | 0 -> 384 bytes | |||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/test.json | 27 | ||||
-rw-r--r-- | examples/test_add_1x4x4x4_f32/test_tf.pb | 112 |
11 files changed, 139 insertions, 0 deletions
diff --git a/examples/test_add_1x4x4x4_f32/InputTensor-tf0.npy b/examples/test_add_1x4x4x4_f32/InputTensor-tf0.npy Binary files differnew file mode 100644 index 0000000..1b3effb --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/InputTensor-tf0.npy diff --git a/examples/test_add_1x4x4x4_f32/InputTensor-tf1.npy b/examples/test_add_1x4x4x4_f32/InputTensor-tf1.npy Binary files differnew file mode 100644 index 0000000..f233cd4 --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/InputTensor-tf1.npy diff --git a/examples/test_add_1x4x4x4_f32/InputTensor-tflite0.npy b/examples/test_add_1x4x4x4_f32/InputTensor-tflite0.npy Binary files differnew file mode 100644 index 0000000..1b3effb --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/InputTensor-tflite0.npy diff --git a/examples/test_add_1x4x4x4_f32/InputTensor-tflite1.npy b/examples/test_add_1x4x4x4_f32/InputTensor-tflite1.npy Binary files differnew file mode 100644 index 0000000..f233cd4 --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/InputTensor-tflite1.npy diff --git a/examples/test_add_1x4x4x4_f32/flatbuffer-tf/test_add_1x4x4x4_f32.tosa b/examples/test_add_1x4x4x4_f32/flatbuffer-tf/test_add_1x4x4x4_f32.tosa Binary files differnew file mode 100644 index 0000000..673efdb --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/flatbuffer-tf/test_add_1x4x4x4_f32.tosa diff --git a/examples/test_add_1x4x4x4_f32/flatbuffer-tflite/test_add_1x4x4x4_f32.tosa b/examples/test_add_1x4x4x4_f32/flatbuffer-tflite/test_add_1x4x4x4_f32.tosa Binary files differnew file mode 100644 index 0000000..8035292 --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/flatbuffer-tflite/test_add_1x4x4x4_f32.tosa diff --git a/examples/test_add_1x4x4x4_f32/placeholder_0.npy b/examples/test_add_1x4x4x4_f32/placeholder_0.npy Binary files differnew file mode 100644 index 0000000..1b3effb --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/placeholder_0.npy diff --git a/examples/test_add_1x4x4x4_f32/placeholder_1.npy b/examples/test_add_1x4x4x4_f32/placeholder_1.npy Binary files differnew file mode 100644 index 0000000..f233cd4 --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/placeholder_1.npy diff --git a/examples/test_add_1x4x4x4_f32/ref_ofm.npy b/examples/test_add_1x4x4x4_f32/ref_ofm.npy Binary files differnew file mode 100644 index 0000000..71e2008 --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/ref_ofm.npy diff --git a/examples/test_add_1x4x4x4_f32/test.json b/examples/test_add_1x4x4x4_f32/test.json new file mode 100644 index 0000000..cd993ef --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/test.json @@ -0,0 +1,27 @@ +{ + "pb": "test_tf.pb", + "ofm_file": "ref_ofm.npy", + "ofm_placeholder": "result", + "ifm_file": [ + "placeholder_0.npy", + "placeholder_1.npy" + ], + "ifm_placeholder": [ + "placeholder_0:0", + "placeholder_1:0" + ], + "ifm_shape": [ + [ + 1, + 4, + 4, + 1 + ], + [ + 1, + 4, + 4, + 4 + ] + ] +}
\ No newline at end of file diff --git a/examples/test_add_1x4x4x4_f32/test_tf.pb b/examples/test_add_1x4x4x4_f32/test_tf.pb new file mode 100644 index 0000000..dae00ee --- /dev/null +++ b/examples/test_add_1x4x4x4_f32/test_tf.pb @@ -0,0 +1,112 @@ +node { + name: "keras_learning_phase/input" + op: "Const" + attr { + key: "dtype" + value { + type: DT_BOOL + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_BOOL + tensor_shape { + } + bool_val: false + } + } + } +} +node { + name: "keras_learning_phase" + op: "PlaceholderWithDefault" + input: "keras_learning_phase/input" + attr { + key: "dtype" + value { + type: DT_BOOL + } + } + attr { + key: "shape" + value { + shape { + } + } + } +} +node { + name: "placeholder_0" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 1 + } + dim { + size: 4 + } + dim { + size: 4 + } + dim { + size: 1 + } + } + } + } +} +node { + name: "placeholder_1" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 1 + } + dim { + size: 4 + } + dim { + size: 4 + } + dim { + size: 4 + } + } + } + } +} +node { + name: "result" + op: "Add" + input: "placeholder_0" + input: "placeholder_1" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} +versions { + producer: 498 +} |