Slide 25
Slide 25 text
def layers(tag_name, image, keep_prob=0.5, training=False):
scope = '%s/%s' % (tag_name, NAME)
with tf.variable_scope(scope):
conv = tf.layers.conv2d(image, BASE_CHANNEL, [1, 1], [1, 1],
padding='SAME',
activation=tf.nn.relu,
use_bias=True,
trainable=training,
name='conv_top')
def layers(tag_name, image, rate=0.5, training=False):
scope = '%s/%s' % (tag_name, NAME)
with tf.variable_scope(scope):
conv = tf.keras.layers.Conv2D(BASE_CHANNEL, [1, 1], [1, 1],
padding='SAME',
activation=tf.nn.relu,
use_bias=True,
name='conv_top')(image)