Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / tests / nnapi / specs / Ex / range_ex_float_1.mod.py
1 # model
2 model = Model()
3 start = Input("start", "TENSOR_FLOAT32", "{}")
4 limit = Input("limit", "TENSOR_FLOAT32", "{}") 
5 delta = Input("delta", "TENSOR_FLOAT32", "{}") 
6 out = Output("output", "TENSOR_FLOAT32", "{8}") 
7 model = model.Operation("RANGE_EX", start, limit, delta).To(out)
8
9 input0 = {start: [1],
10            limit: [5],
11            delta: [0.5]}
12
13 output0 = {out: # output 0
14            [1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5]}
15 # Instantiate an example
16 Example((input0,output0))