aboutsummaryrefslogtreecommitdiff
path: root/examples/test_add_1x4x4x4_f32
diff options
context:
space:
mode:
authorKevin Cheng <kevin.cheng@arm.com>2021-05-06 11:19:51 -0700
committerKevin Cheng <kevin.cheng@arm.com>2021-05-06 11:26:09 -0700
commitd267dd9418374d49ac1e1a1a9c9b1d30b5733ee9 (patch)
tree2e98e252fe060dcddc11e5508d7eff75dd0b6160 /examples/test_add_1x4x4x4_f32
parent9257fd5775b49e206de33536a623e34cc1cecb42 (diff)
downloadreference_model-d267dd9418374d49ac1e1a1a9c9b1d30b5733ee9.tar.gz
Regenerate examples/ tests
Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: I0c6286bdbd78c8e479eb64deead8822189968bef
Diffstat (limited to 'examples/test_add_1x4x4x4_f32')
-rw-r--r--examples/test_add_1x4x4x4_f32/flatbuffer-tf/test_add_1x4x4x4_f32.tosabin644 -> 596 bytes
-rw-r--r--examples/test_add_1x4x4x4_f32/flatbuffer-tflite/test_add_1x4x4x4_f32.tosabin676 -> 628 bytes
-rw-r--r--examples/test_add_1x4x4x4_f32/model.pb (renamed from examples/test_add_1x4x4x4_f32/test_tf.pb)60
-rw-r--r--examples/test_add_1x4x4x4_f32/model.tflitebin0 -> 600 bytes
-rw-r--r--examples/test_add_1x4x4x4_f32/test.json15
-rw-r--r--examples/test_add_1x4x4x4_f32/tf_result.npy (renamed from examples/test_add_1x4x4x4_f32/ref_ofm.npy)bin384 -> 384 bytes
-rw-r--r--examples/test_add_1x4x4x4_f32/tflite_result.npybin0 -> 384 bytes
7 files changed, 31 insertions, 44 deletions
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
index 673efdb..7a195af 100644
--- 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 differ
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
index 8035292..c686131 100644
--- 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 differ
diff --git a/examples/test_add_1x4x4x4_f32/test_tf.pb b/examples/test_add_1x4x4x4_f32/model.pb
index dae00ee..c2570bf 100644
--- a/examples/test_add_1x4x4x4_f32/test_tf.pb
+++ b/examples/test_add_1x4x4x4_f32/model.pb
@@ -1,45 +1,12 @@
node {
- name: "keras_learning_phase/input"
- op: "Const"
- attr {
- key: "dtype"
- value {
- type: DT_BOOL
- }
- }
+ name: "placeholder_0"
+ op: "Placeholder"
attr {
- key: "value"
+ key: "_user_specified_name"
value {
- tensor {
- dtype: DT_BOOL
- tensor_shape {
- }
- bool_val: false
- }
+ s: "placeholder_0"
}
}
-}
-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 {
@@ -70,6 +37,12 @@ node {
name: "placeholder_1"
op: "Placeholder"
attr {
+ key: "_user_specified_name"
+ value {
+ s: "placeholder_1"
+ }
+ }
+ attr {
key: "dtype"
value {
type: DT_FLOAT
@@ -107,6 +80,17 @@ node {
}
}
}
+node {
+ name: "Identity"
+ op: "Identity"
+ input: "result"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+}
versions {
- producer: 498
+ producer: 714
}
diff --git a/examples/test_add_1x4x4x4_f32/model.tflite b/examples/test_add_1x4x4x4_f32/model.tflite
new file mode 100644
index 0000000..36a6799
--- /dev/null
+++ b/examples/test_add_1x4x4x4_f32/model.tflite
Binary files differ
diff --git a/examples/test_add_1x4x4x4_f32/test.json b/examples/test_add_1x4x4x4_f32/test.json
index cd993ef..48df6a1 100644
--- a/examples/test_add_1x4x4x4_f32/test.json
+++ b/examples/test_add_1x4x4x4_f32/test.json
@@ -1,14 +1,17 @@
{
- "pb": "test_tf.pb",
- "ofm_file": "ref_ofm.npy",
- "ofm_placeholder": "result",
+ "tf_model_filename": "model.pb",
+ "tf_result_npy_filename": "tf_result.npy",
+ "tf_result_name": "result",
+ "tflite_model_filename": "model.tflite",
+ "tflite_result_npy_filename": "tflite_result.npy",
+ "tflite_result_name": "Identity",
"ifm_file": [
"placeholder_0.npy",
"placeholder_1.npy"
],
- "ifm_placeholder": [
- "placeholder_0:0",
- "placeholder_1:0"
+ "ifm_name": [
+ "placeholder_0",
+ "placeholder_1"
],
"ifm_shape": [
[
diff --git a/examples/test_add_1x4x4x4_f32/ref_ofm.npy b/examples/test_add_1x4x4x4_f32/tf_result.npy
index 71e2008..71e2008 100644
--- a/examples/test_add_1x4x4x4_f32/ref_ofm.npy
+++ b/examples/test_add_1x4x4x4_f32/tf_result.npy
Binary files differ
diff --git a/examples/test_add_1x4x4x4_f32/tflite_result.npy b/examples/test_add_1x4x4x4_f32/tflite_result.npy
new file mode 100644
index 0000000..71e2008
--- /dev/null
+++ b/examples/test_add_1x4x4x4_f32/tflite_result.npy
Binary files differ