Skip to content

Commit

Permalink
Update resnet.py
Browse files Browse the repository at this point in the history
Fixed repeated line
  • Loading branch information
wenxinxu authored Mar 10, 2018
1 parent c1ef9f4 commit 8ba8d89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ def create_variables(name, shape, initializer=tf.contrib.layers.xavier_initializ
'''

## TODO: to allow different weight decay to fully connected layer and conv layer
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)
regularizer = tf.contrib.layers.l2_regularizer(scale=FLAGS.weight_decay)

new_variables = tf.get_variable(name, shape=shape, initializer=initializer,
regularizer=regularizer)
Expand Down

0 comments on commit 8ba8d89

Please sign in to comment.