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
Note that you must specify ``py_limited_api=True`` both within ``setup``:
89
+
Note that you must specify ``py_limited_api=True`` both within ``setup``
87
90
and also as an option to the ``"bdist_wheel"`` command with the minimal supported
88
91
Python version (in this case, 3.9). This ``setup`` would build one wheel that could
89
92
be installed across multiple Python versions ``python>=3.9``. Please see
@@ -95,9 +98,9 @@ be installed across multiple Python versions ``python>=3.9``. Please see
95
98
Specifying ``py_limited_api`` does not check for any guarantees, so it is possible
96
99
to build a wheel that looks Python agnostic but will crash, or worse, be silently
97
100
incorrect, in another Python environment. Take care to avoid using unstable CPython
98
-
APIs, for example APIs from libtorch_python (in particular pytorch/python bindings)
101
+
APIs, for example APIs from libtorch_python (in particular pytorch/python bindings,)
99
102
and to only use APIs from libtorch (aten objects, operators and the dispatcher).
100
-
For example, to give access to custom ops from python, the library should register
103
+
For example, to give access to custom ops from Python, the library should register
101
104
the ops through the dispatcher (covered below!).
102
105
103
106
Defining the custom op and adding backend implementations
@@ -251,7 +254,7 @@ of two ways:
251
254
2. If your C++ custom operator is located in a shared library object, you can
252
255
also use ``torch.ops.load_library("/path/to/library.so")`` to load it. This
253
256
is the blessed path for Python agnosticism, as you will not have a Python C
254
-
extension module to import. See `torchao __init__.py <https://github.com/pytorch/ao/blob/881e84b4398eddcea6fee4d911fc329a38b5cd69/torchao/__init__.py#L26-L28>`
257
+
extension module to import. See `torchao __init__.py <https://github.com/pytorch/ao/blob/881e84b4398eddcea6fee4d911fc329a38b5cd69/torchao/__init__.py#L26-L28>`_
0 commit comments