Home | History | Annotate | Download | only in V1_0
      1 # model
      2 model = Model()
      3 i1 = Input("op1",  "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 1.f, 0")
      4 i2 = Output("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}")
      5 model = model.Operation("DEQUANTIZE", i1).To(i2)
      6 
      7 # Example 1. Input in operand 0,
      8 input0 = {i1: # input 0
      9           [0, 32, 128, 255]}
     10 
     11 output0 = {i2: # output 0
     12            [0.0, 32.0, 128.0, 255.0]}
     13 
     14 # Instantiate an example
     15 Example((input0, output0))
     16