Skip to content

Commit 4be0618

Browse files
authored
Correct name of registered operator (#1766)
duplicate of #906. Fixes #909.
1 parent f442f27 commit 4be0618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced_source/torch_script_custom_ops.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,5 +1029,5 @@ visible to TorchScript:
10291029
10301030
>>> import torch
10311031
>>> torch.ops.load_library("warp_perspective.so")
1032-
>>> print(torch.ops.custom.warp_perspective)
1032+
>>> print(torch.ops.my_ops.warp_perspective)
10331033
<built-in method custom::warp_perspective of PyCapsule object at 0x7ff51c5b7bd0>

0 commit comments

Comments
 (0)