blob: ebb5af25253ee9d65f8fa3af30341da37dc67dcc [file] [log] [blame]
# model
model = Model()
i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 0.5f, 0")
i3 = Output("op3", "TENSOR_QUANT8_ASYMM", "{1, 2, 2, 1}, 1.f/256, 0")
model = model.Operation("LOGISTIC", i1).To(i3)
# Example 1. Input in operand 0,
input0 = {i1: # input 0
[0, 1, 2, 127]}
output0 = {i3: # output 0
[128, 159, 187, 255]}
# Instantiate an example
Example((input0, output0))