diff options
author | Chunseok Lee <chunseok.lee@samsung.com> | 2020-04-23 14:45:49 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2020-04-23 14:45:49 +0900 |
commit | e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e (patch) | |
tree | 44a1a7951d168dd4370e13593ed03f4bc6d920c5 /tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py | |
parent | 302e6564a7a76109e1178207e44e45a58631c477 (diff) | |
download | nnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.tar.gz nnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.tar.bz2 nnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.zip |
Imported Upstream version 1.4.0upstream/1.4.0submit/tizen/20200423.054851
Diffstat (limited to 'tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py')
-rwxr-xr-x | tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py b/tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py new file mode 100755 index 000000000..b5ab39482 --- /dev/null +++ b/tests/nnapi/specs/V1_2/abs_3D_float_nnfw.mod.py @@ -0,0 +1,20 @@ +# model +model = Model() + +i1 = Input("input", "TENSOR_FLOAT32", "{2, 3, 2}") +i2 = Output("output", "TENSOR_FLOAT32", "{2, 3, 2}") +model = model.Operation("ABS", i1).To(i2) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [0.735078, -0.46738, -241, 0.9118, -0.46686, + -3150.219, -0.495291, -0.42874460, 0.5005046655, + 0.1131106620, -40.0, 15.0]} + +output0 = {i2: # output 0 + [0.735078, 0.46738, 241, 0.9118, 0.46686, + 3150.219, 0.495291, 0.42874460, 0.5005046655, + 0.1131106620, 40.0, 15.0]} + +# Instantiate an example +Example((input0, output0)) |