Skip to content

Commit

Permalink
better lr finder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsketchdeck committed Jan 4, 2019
1 parent adb2afb commit 179a1d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions macgraph/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ def get_args(extend=lambda parser:None, argv=None):

parser.add_argument('--enable-tf-debug', action='store_true', dest="use_tf_debug")
parser.add_argument('--enable-floyd', action='store_true', dest="use_floyd")
parser.add_argument('--diable-assert', action='store_false', dest="use_assert")
parser.add_argument('--disable-summary-scalar', action='store_false', dest='use_summary_scalar')
parser.add_argument('--enable-summary-image', action='store_true', dest='use_summary_image')
parser.add_argument('--disable-assert', action='store_false', dest="use_assert")

args = vars(parser.parse_args(argv))

Expand Down
1 change: 0 additions & 1 deletion macgraph/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def model_fn(features, labels, mode, params):
decay_rate=1.5)


if args["use_summary_scalar"]:
var = tf.trainable_variables()
gradients = tf.gradients(loss, var)
norms = [tf.norm(i, 2) for i in gradients if i is not None]
Expand Down
2 changes: 1 addition & 1 deletion train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ python -m macgraph.train \
--eval-every 90 \
--mp-state-width 64 \
--embed-width 128 \
--learning-rate 0.1 \
--learning-rate 0.01 \
--fast \
$@

0 comments on commit 179a1d1

Please sign in to comment.