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