rahul003 commented on a change in pull request #10685: Update fit.py
URL: https://github.com/apache/incubator-mxnet/pull/10685#discussion_r184245569
##########
File path: example/image-classification/common/fit.py
##########
@@ -238,7 +238,7 @@ def fit(args, network, data_loader, **kwargs):
# AlexNet will not converge using Xavier
initializer = mx.init.Normal()
# VGG will not trend to converge using Xavier-Gaussian
- elif 'vgg' in args.network:
+ elif args.network != None and 'vgg' in args.network:
Review comment:
it would be cleaner and more pythonic if you did 'elif args.network and
'vgg' in args.network'
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services