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/09/18 18:06:55 UTC

[GitHub] sandeep-krishnamurthy closed pull request #12186: Added comment to docs regarding ToTensor transform

sandeep-krishnamurthy closed pull request #12186: Added comment to docs regarding ToTensor transform
URL: https://github.com/apache/incubator-mxnet/pull/12186
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/api/python/gluon/data.md b/docs/api/python/gluon/data.md
index 3c6bb02e47c..99e54c1f034 100644
--- a/docs/api/python/gluon/data.md
+++ b/docs/api/python/gluon/data.md
@@ -76,7 +76,7 @@ In the rest of this document, we list routines provided by the `gluon.data` pack
 ```
 
 Transforms can be used to augment input data during training. You
-can compose multiple transforms sequentially, for example:
+can compose multiple transforms sequentially (taking note of which functions should be applied before and after `ToTensor`).
 
 ```python
 from mxnet.gluon.data.vision import MNIST, transforms
diff --git a/python/mxnet/gluon/data/vision/transforms.py b/python/mxnet/gluon/data/vision/transforms.py
index 2e35a404b00..3523be4d054 100644
--- a/python/mxnet/gluon/data/vision/transforms.py
+++ b/python/mxnet/gluon/data/vision/transforms.py
@@ -245,6 +245,7 @@ def forward(self, x):
 
 class Resize(Block):
     """Resize an image to the given size.
+    Should be applied before `mxnet.gluon.data.vision.transforms.ToTensor`.
 
     Parameters
     ----------


 

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