We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1120aa9 commit 378a327Copy full SHA for 378a327
torchvision/prototype/transforms/_transform.py
@@ -130,7 +130,7 @@ def __prepare_scriptable__(self) -> nn.Module:
130
# is around.
131
if self._v1_transform_cls is None:
132
raise RuntimeError(
133
- f"Transform {type(self.__name__)} cannot be JIT scripted. "
+ f"Transform {type(self).__name__} cannot be JIT scripted. "
134
f"This is only support for backward compatibility with transforms which already in v1."
135
f"For torchscript support (on tensors only), you can use the functional API instead."
136
)
0 commit comments