diff options
Diffstat (limited to 'tests/nnapi/specs/V1_2/abs_2D_float_nnfw.mod.py')
-rwxr-xr-x | tests/nnapi/specs/V1_2/abs_2D_float_nnfw.mod.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_2/abs_2D_float_nnfw.mod.py b/tests/nnapi/specs/V1_2/abs_2D_float_nnfw.mod.py new file mode 100755 index 000000000..901127b8d --- /dev/null +++ b/tests/nnapi/specs/V1_2/abs_2D_float_nnfw.mod.py @@ -0,0 +1,20 @@ +# model +model = Model() + +i1 = Input("input", "TENSOR_FLOAT32", "{5, 2}") +i2 = Output("output", "TENSOR_FLOAT32", "{5, 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]} + +output0 = {i2: # output 0 + [0.735078, 0.46738, 241, 0.9118, 0.46686, + 3150.219, 0.495291, 0.42874460, 0.5005046655, + 0.1131106620]} + +# Instantiate an example +Example((input0, output0)) |