@@ -53,7 +53,7 @@ def residual_network(x, n_outputs,
5353 # %%
5454 # First convolution expands to 64 channels and downsamples
5555 net = conv2d (x , 64 , k_h = 7 , k_w = 7 ,
56- batch_norm = True , name = 'conv1' ,
56+ name = 'conv1' ,
5757 activation = activation )
5858
5959 # %%
@@ -74,17 +74,17 @@ def residual_network(x, n_outputs,
7474 name = 'block_%d/layer_%d' % (block_i , layer_i )
7575 conv = conv2d (net , block .bottleneck_size , k_h = 1 , k_w = 1 ,
7676 padding = 'VALID' , stride_h = 1 , stride_w = 1 ,
77- activation = activation , batch_norm = True ,
77+ activation = activation ,
7878 name = name + '/conv_in' )
7979
8080 conv = conv2d (conv , block .bottleneck_size , k_h = 3 , k_w = 3 ,
8181 padding = 'SAME' , stride_h = 1 , stride_w = 1 ,
82- activation = activation , batch_norm = True ,
82+ activation = activation ,
8383 name = name + '/conv_bottleneck' )
8484
8585 conv = conv2d (conv , block .num_filters , k_h = 1 , k_w = 1 ,
8686 padding = 'VALID' , stride_h = 1 , stride_w = 1 ,
87- activation = activation , batch_norm = True ,
87+ activation = activation ,
8888 name = name + '/conv_out' )
8989
9090 net = conv + net
0 commit comments