diff options
Diffstat (limited to 'runtimes/tests/neural_networks_test/specs/V1_0/softmax_float_1.mod.py')
-rw-r--r-- | runtimes/tests/neural_networks_test/specs/V1_0/softmax_float_1.mod.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtimes/tests/neural_networks_test/specs/V1_0/softmax_float_1.mod.py b/runtimes/tests/neural_networks_test/specs/V1_0/softmax_float_1.mod.py new file mode 100644 index 000000000..9f62bad96 --- /dev/null +++ b/runtimes/tests/neural_networks_test/specs/V1_0/softmax_float_1.mod.py @@ -0,0 +1,17 @@ +# model +model = Model() + +i1 = Input("input", "TENSOR_FLOAT32", "{1, 4}") # batch = 1, depth = 1 +beta = Float32Scalar("beta", 0.000001) +output = Output("output", "TENSOR_FLOAT32", "{1, 4}") + +# model 1 +model = model.Operation("SOFTMAX", i1, beta).To(output) + +# Example 1. Input in operand 0, +input0 = {i1: [1., 2., 10., 20.]} + +output0 = {output: [.25, .25, .25, .25]} + +# Instantiate an example +Example((input0, output0)) |