zheng-da commented on a change in pull request #8302: Refactor operators &
MKLDNN
URL: https://github.com/apache/incubator-mxnet/pull/8302#discussion_r162141699
##########
File path: example/image-classification/common/data.py
##########
@@ -112,7 +112,8 @@ def get_rec_iter(args, kv=None):
image_shape = tuple([int(l) for l in args.image_shape.split(',')])
if 'benchmark' in args and args.benchmark:
data_shape = (args.batch_size,) + image_shape
- train = SyntheticDataIter(args.num_classes, data_shape, 500,
np.float32)
+ train = SyntheticDataIter(args.num_classes, data_shape,
+ args.num_examples / args.batch_size, np.float32)
Review comment:
Not really. It seems to me this is a bug, so I fixed it.
----------------------------------------------------------------
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