summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/Ex/exp_ex_1D_float.mod.py
blob: 1979b0aecec98a91acf164e14184199f7ad91e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# model
model = Model()
i1 = Input("op1", "TENSOR_FLOAT32", "{4}") # a vector of 4 float32s
i2 = Output("op2", "TENSOR_FLOAT32", "{4}") # a vector of 4 float32s
model = model.Operation("EXP_EX", i1).To(i2)

# Example 1. Input in operand 0,
input0 = {i1: # input 0
          [3.0, 4.0, 5.0, 6.0]}

output0 = {i2: # output 0
           [20.085537, 54.59815, 148.41316, 403.4288]}

# Instantiate an example
Example((input0, output0))