Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Added comment to docs regarding ToTensor transform #12186

Merged
merged 6 commits into from
Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/python/gluon/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions python/mxnet/gluon/data/vision/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down