summaryrefslogtreecommitdiff
path: root/tests/nnapi/specs/V1_2/sqrt_2D_float_nnfw.mod.py
blob: a61732dd3fe456e293a6732984e0d9c6a903c1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# model
model = Model()
i1 = Input("op1", "TENSOR_FLOAT32", "{2, 2}")
i2 = Output("op2", "TENSOR_FLOAT32", "{2, 2}")
model = model.Operation("SQRT", i1).To(i2)

# Example 1. Input in operand 0,
input0 = {i1: # input 0
           [36, 2, 9, 12]}
output0 = {i2: # output 0
           [6.0, 1.41421356, 3.0, 3.46410162]}
# Instantiate an example
Example((input0, output0))