diff options
Diffstat (limited to 'tests/nnapi/specs/V1_0/local_response_norm_float_2.mod.py')
-rw-r--r-- | tests/nnapi/specs/V1_0/local_response_norm_float_2.mod.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/nnapi/specs/V1_0/local_response_norm_float_2.mod.py b/tests/nnapi/specs/V1_0/local_response_norm_float_2.mod.py new file mode 100644 index 000000000..fa025bfc0 --- /dev/null +++ b/tests/nnapi/specs/V1_0/local_response_norm_float_2.mod.py @@ -0,0 +1,19 @@ +model = Model() +i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") +radius = Int32Scalar("radius", 20) +bias = Float32Scalar("bias", 0.) +alpha = Float32Scalar("alpha", 1.) +beta = Float32Scalar("beta", .5) +output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") + +model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [-1.1, .6, .7, 1.2, -.7, .1]} + +output0 = {output: # output 0 + [-.55, .3, .35, .6, -.35, .05]} + +# Instantiate an example +Example((input0, output0)) |