1 model = Model() 2 i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") 3 radius = Int32Scalar("radius", 20) 4 bias = Float32Scalar("bias", 0.) 5 alpha = Float32Scalar("alpha", 4.) 6 beta = Float32Scalar("beta", .5) 7 output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") 8 9 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) 10 11 # Example 1. Input in operand 0, 12 input0 = {i1: # input 0 13 [-1.1, .6, .7, 1.2, -.7, .1]} 14 15 output0 = {output: # output 0 16 [-.275, .15, .175, .3, -.175, .025]} 17 18 # Instantiate an example 19 Example((input0, output0)) 20