guanxinq commented on a change in pull request #16794: Random rotation
URL: https://github.com/apache/incubator-mxnet/pull/16794#discussion_r369173359
##########
File path: tests/python/unittest/test_gluon_data_vision.py
##########
@@ -224,11 +224,39 @@ def test_transformer():
transforms.RandomHue(0.1),
transforms.RandomLighting(0.1),
transforms.ToTensor(),
+ transforms.RandomRotation([-10., 10.]),
transforms.Normalize([0, 0, 0], [1, 1, 1])])
transform(mx.nd.ones((245, 480, 3), dtype='uint8')).wait_to_read()
+@with_seed()
Review comment:
For tests, is testing the dimension only enough?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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