Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / tests / nnapi / specs / V1_2 / sin_1D_float_nnfw.mod.py
1 # model
2 model = Model()
3 i1 = Input("op1", "TENSOR_FLOAT32", "{4}") #A vector of inputs
4 i2 = Output("op2", "TENSOR_FLOAT32", "{4}") #A vector of outputs
5 model = model.Operation("SIN", i1).To(i2)
6
7 # Example 1. Input in operand 0,
8 input0 = {i1: # input 0
9            [2.0, 90.0, 1.0, 0.012]}
10 output0 = {i2: # output 0
11            [0.909297427, 0.893996664, 0.841470985, 0.011999712]}
12 # Instantiate an example
13 Example((input0, output0))