Home | History | Annotate | Download | only in V1_0
      1 # model
      2 model = Model()
      3 i1 = Input("op1", "TENSOR_FLOAT32", "{1, 2, 2, 2}")
      4 i2 = Output("op2", "TENSOR_FLOAT32", "{1, 2, 2, 2}")
      5 model = model.Operation("FLOOR", i1).To(i2)
      6 
      7 # Example 1. Input in operand 0,
      8 input0 = {i1: # input 0
      9           [-1.5, -1.0, -0.5, 0.0,
     10             .5,   1.0,  1.5, 10.2]}
     11 
     12 output0 = {i2: # output 0
     13            [-2.0, -1.0, -1.0, 0.0,
     14              0.0,  1.0,  1.0, 10]}
     15 
     16 # Instantiate an example
     17 Example((input0, output0))
     18