def _vgg_conv_relu(self, x, n_in, n_out, scope, fc7=False, trainable=True):
with tf.variable_scope(scope):
if fc7 == False:
conv = ops.conv2d(x, n_in, n_out, 3, trainable=trainable, relu=True)
else:
conv = ops.conv2d(x, n_in, n_out, 1, trainable=trainable, relu=True)
return conv
评论列表
文章目录