diff options
author | Chunseok Lee <chunseok.lee@samsung.com> | 2020-03-04 18:09:24 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2020-03-04 18:09:24 +0900 |
commit | 302e6564a7a76109e1178207e44e45a58631c477 (patch) | |
tree | 6cc4bd95e5e438331fc2c53234af4ed0e0f3bc20 /tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py | |
parent | bd11b24234d7d43dfe05a81c520aa01ffad06e42 (diff) | |
download | nnfw-302e6564a7a76109e1178207e44e45a58631c477.tar.gz nnfw-302e6564a7a76109e1178207e44e45a58631c477.tar.bz2 nnfw-302e6564a7a76109e1178207e44e45a58631c477.zip |
Imported Upstream version 1.1.0upstream/1.1.0submit/tizen/20200304.094649submit/tizen/20200304.093946submit/tizen/20200304.092919accepted/tizen/unified/20200305.051107
Diffstat (limited to 'tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py')
-rw-r--r-- | tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py b/tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py new file mode 100644 index 000000000..f75a80720 --- /dev/null +++ b/tests/nnapi/specs/V1_2/sqrt_4D_float_nnfw.mod.py @@ -0,0 +1,14 @@ +# model +model = Model() +i1 = Input("op1", "TENSOR_FLOAT32", "{2, 2, 2, 2}") +i2 = Output("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}") +model = model.Operation("SQRT", i1).To(i2) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [36, 90, 43, 36, 2, 22, 19, 10, 9, 80, 40, 90, 15, 56, 18, 12]} +output0 = {i2: # output 0 + [6.0, 9.48683298, 6.55743852, 6.0, 1.41421356, 4.69041576, 4.35889894, 3.16227766, + 3.0, 8.94427191, 6.32455532, 9.48683298, 3.87298335, 7.48331477, 4.24264069, 3.46410162]} +# Instantiate an example +Example((input0, output0)) |