1 //Creates a Conv2DOptions object with the default parameter values 2 auto opts = new Conv2DOptions() 3 .padding([0, 0]) 4 .stride([1, 1]) 5 .filterInit(heGaussianInit()) 6 .biasInit(constantInit(0.0f)) 7 .filterProj(null) 8 .biasProj(null) 9 .weightDecay(0.0f) 10 .useBias(true); 11 12 //The fields can also be accessed again later 13 assert(opts.padding == [0, 0]); 14 assert(opts.stride == [1, 1]);
Encapsulates the additional options for a Layer created with conv2D.