You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/05 21:31:10 UTC

[GitHub] vandanavk commented on a change in pull request #13930: Add batchify transformer to help end to end models

vandanavk commented on a change in pull request #13930: Add batchify transformer to help end to end models
URL: https://github.com/apache/incubator-mxnet/pull/13930#discussion_r254054173
 
 

 ##########
 File path: tests/python/unittest/test_gluon_data_vision.py
 ##########
 @@ -83,6 +83,25 @@ def test_transformer():
     transform(mx.nd.ones((245, 480, 3), dtype='uint8')).wait_to_read()
 
 
+@with_seed()
+def test_batchify():
+    transformer = transforms.Batchify()
+    im1 = nd.random.uniform(0, 1, (3, 28, 28))
+    im2 = nd.random.uniform(0, 1, (3, 28, 28))
+    im3 = nd.random.uniform(0, 1, (3, 28, 28))
 
 Review comment:
   Could you add a test with inputs of different sizes too? That may serve as an example for users as well

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services