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 2018/03/20 16:22:39 UTC

[GitHub] piiswrong commented on a change in pull request #10155: [MXNet-111] Doc for gluon.data.transforms

piiswrong commented on a change in pull request #10155: [MXNet-111] Doc for gluon.data.transforms
URL: https://github.com/apache/incubator-mxnet/pull/10155#discussion_r175832076
 
 

 ##########
 File path: docs/api/python/gluon/data.md
 ##########
 @@ -69,6 +69,33 @@ In the rest of this document, we list routines provided by the `gluon.data` pack
     ImageFolderDataset
 ```
 
+#### Vision Transforms
+
+```eval_rst
+.. currentmodule:: mxnet.gluon.data.vision.transforms
+```
+
 
 Review comment:
   add an example. Something like
   ```
   from mxnet.gluon.data.vision import MNIST, transforms
   transform = transforms.Compose([
       transforms.Resize(300),
       transforms.RandomResizedCrop(224),
       transforms.RandomBrightness(0.1),
       transforms.ToTensor(),
       transforms.Normalize([0,0,0], [1,1,1])])
   
   data = MNIST(train=True).transform_first(transform)
   
   data_loader = gluon.data.DataLoader(
       data, batch_size=64, num_workers=4)
   
   for data, label in data_loader:
       …
   ```
   
   

----------------------------------------------------------------
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