def convb(self, input, k_h, k_w, c_o, stride, name):
with slim.arg_scope([slim.batch_norm], fused=common.batchnorm_fused):
output = slim.convolution2d(input, c_o, kernel_size=[k_h, k_w],
stride=stride,
normalizer_fn=slim.batch_norm,
weights_regularizer=tf.contrib.layers.l2_regularizer(common.regularizer_conv),
scope=name)
return output
评论列表
文章目录