We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def create_variables(name, shape, initializer=tf.contrib.layers.xavier_initializer(), is_fc_layer=False): if is_fc_layer is True: regularizer = tf.contrib.layers.l2_regularizer(scale=FLAGS.weight_decay) else: regularizer = tf.contrib.layers.l2_regularizer(scale=FLAGS.weight_decay)
new_variables = tf.get_variable(name, shape=shape, initializer=initializer, regularizer=regularizer) return new_variables
These two lines, the same?
The text was updated successfully, but these errors were encountered:
Ah thanks for pointing out! I intended to use different weight--decay for fc layers.
Changed now.
Sorry, something went wrong.
No branches or pull requests
def create_variables(name, shape, initializer=tf.contrib.layers.xavier_initializer(), is_fc_layer=False):
if is_fc_layer is True:
regularizer = tf.contrib.layers.l2_regularizer(scale=FLAGS.weight_decay)
else:
regularizer = tf.contrib.layers.l2_regularizer(scale=FLAGS.weight_decay)
These two lines, the same?
The text was updated successfully, but these errors were encountered: