Skip to content

Commit 43025a0

Browse files
committed
compression: update script
1 parent 179ef6f commit 43025a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/mxnet/train_gluon_mnist_byteps_gc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def evaluate(model, data_iter, context):
149149
optimizer_params = {'momentum': args.momentum,
150150
'learning_rate': args.lr * num_workers}
151151

152-
if args.compress_momentum:
152+
if args.compress_momentum or args.momentum == 0.0:
153153
del optimizer_params['momentum']
154154

155155
compression = bps.Compression.fp16 if args.fp16_pushpull else bps.Compression.none

0 commit comments

Comments
 (0)