summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py
diff options
context:
space:
mode:
authorChunseok Lee <chunseok.lee@samsung.com>2020-03-04 18:09:24 +0900
committerChunseok Lee <chunseok.lee@samsung.com>2020-03-04 18:09:24 +0900
commit302e6564a7a76109e1178207e44e45a58631c477 (patch)
tree6cc4bd95e5e438331fc2c53234af4ed0e0f3bc20 /tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py
parentbd11b24234d7d43dfe05a81c520aa01ffad06e42 (diff)
downloadnnfw-302e6564a7a76109e1178207e44e45a58631c477.tar.gz
nnfw-302e6564a7a76109e1178207e44e45a58631c477.tar.bz2
nnfw-302e6564a7a76109e1178207e44e45a58631c477.zip
Diffstat (limited to 'tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py')
-rw-r--r--tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py b/tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py
new file mode 100644
index 000000000..2945e5bdc
--- /dev/null
+++ b/tests/nnapi/specs/V1_0/mul_float_square_nnfw.mod.py
@@ -0,0 +1,16 @@
+# model
+model = Model()
+i1 = Input("op1", "TENSOR_FLOAT32", "{1, 2, 2, 1}")
+act = Int32Scalar("act", 0) # an int32_t scalar fuse_activation
+i3 = Output("op3", "TENSOR_FLOAT32", "{1, 2, 2, 1}")
+model = model.Operation("MUL", i1, i1, act).To(i3)
+
+# Example 1. Input in operand 0,
+input0 = {i1: # input 0
+ [2, -4, 8, -16]}
+
+output0 = {i3: # output 0
+ [4, 16, 64, 256]}
+
+# Instantiate an example
+Example((input0, output0))