You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advanced_source/torch_script_custom_ops.rst
+31
Original file line number
Diff line number
Diff line change
@@ -1076,3 +1076,34 @@ visible to TorchScript:
1076
1076
>>> torch.ops.load_library("warp_perspective.so")
1077
1077
>>> print(torch.ops.custom.warp_perspective)
1078
1078
<built-in method custom::warp_perspective of PyCapsule object at 0x7ff51c5b7bd0>
1079
+
1080
+
1081
+
FAQ
1082
+
---------------------------------------
1083
+
1084
+
1085
+
Custom Ops Types
1086
+
*******************
1087
+
1088
+
TorchScript custom Ops supports a limited number of types. The types supported by JIT custom ops are declared `here<https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/core/jit_type.h>`_.
0 commit comments