anirudhacharya commented on a change in pull request #12485:
test_ImageRecordIter_seed_augmentation flaky test fix
URL: https://github.com/apache/incubator-mxnet/pull/12485#discussion_r237217569
##########
File path: tests/python/unittest/test_io.py
##########
@@ -489,31 +524,27 @@ def test_ImageRecordIter_seed_augmentation():
random_h=10,
max_shear_ratio=2,
seed_aug=seed_aug+1)
- batch = dataiter.next()
- data2 = batch.data[0].asnumpy().astype(np.uint8)
- assert(not np.array_equal(data,data2))
+
+ assert_dataiter_not_equals(dataiter1, dataiter2)
# check whether seed_aug changes the iterator behavior
- dataiter = mx.io.ImageRecordIter(
+ dataiter1 = mx.io.ImageRecordIter(
Review comment:
what is getting tested here that is not being tested in the first test?
----------------------------------------------------------------
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