Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / tests / nnapi / specs / V1_2 / rsqrt_2D_float_nnfw.mod.py
1 # model
2 model = Model()
3
4 i1 = Input("op1", "TENSOR_FLOAT32", "{2, 2}")
5 i3 = Output("op3", "TENSOR_FLOAT32", "{2, 2}")
6 model = model.Operation("RSQRT", i1).To(i3)
7
8 # Example 1. Input in operand 0,
9 input0 = {i1: # input 0
10           [1.0, 2.0, 4.0, 8.0]}
11
12 output0 = {i3: # output 0
13            [1.0,
14             0.70710678118,
15             0.5,
16             0.35355339059]}
17
18 # Instantiate an example
19 Example((input0, output0))