Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
3d0c7794
Unverified
Commit
3d0c7794
authored
Oct 05, 2020
by
vfdev
Committed by
GitHub
Oct 05, 2020
Browse files
Fixes #2738 (#2757)
- Fixed incorrect docs layout and a warning
parent
7d872968
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
docs/source/transforms.rst
docs/source/transforms.rst
+3
-1
No files found.
docs/source/transforms.rst
View file @
3d0c7794
...
@@ -16,7 +16,7 @@ random transformations applied on the batch of Tensor Images identically transfo
...
@@ -16,7 +16,7 @@ random transformations applied on the batch of Tensor Images identically transfo
Scriptable transforms
Scriptable transforms
^^^^^^^^^^^^^^^^^^^^^
---------------------
In order to script the transformations, please use ``torch.nn.Sequential`` instead of :class:`Compose`.
In order to script the transformations, please use ``torch.nn.Sequential`` instead of :class:`Compose`.
...
@@ -33,6 +33,8 @@ Make sure to use only scriptable transformations, i.e. that work with ``torch.Te
...
@@ -33,6 +33,8 @@ Make sure to use only scriptable transformations, i.e. that work with ``torch.Te
For any custom transformations to be used with ``torch.jit.script``, they should be derived from ``torch.nn.Module``.
For any custom transformations to be used with ``torch.jit.script``, they should be derived from ``torch.nn.Module``.
Compositions of transforms
--------------------------
.. autoclass:: Compose
.. autoclass:: Compose
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment