Skip to content

Commit 67ad7ff

Browse files
committed
update
1 parent 37c72ee commit 67ad7ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

advanced_source/python_backend_autoload.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ This mechanism is implemented based on Python's `Entry points
6060
<https://packaging.python.org/en/latest/specifications/entry-points/>`_
6161
mechanism. We discover and load all of the specific entry points
6262
in ``torch/__init__.py`` that are defined by out-of-tree extensions.
63-
This feature is enabled by default and can be disabled using
64-
``export TORCH_DEVICE_BACKEND_AUTOLOAD=0``.
6563
Its implementation is in `[RFC] Add support for device extension autoloading
6664
<https://github.com/pytorch/pytorch/pull/127074>`_.
6765

6866
.. note::
6967

68+
This feature is enabled by default and can be disabled using
69+
``export TORCH_DEVICE_BACKEND_AUTOLOAD=0``.
7070
If you get an error like this: "Failed to load the backend extension",
71-
this error has nothing to do with PyTorch, you should ask the extension
72-
maintainer for help.
71+
this error has nothing to do with PyTorch, you should disable this feature
72+
and ask the out-of-tree extension maintainer for help.
7373

7474
How to apply this to out-of-tree extensions?
7575
--------------------------------------------
7676

77-
For example, if you have a package named ``torch_foo`` and it includes the
78-
following in its ``__init__.py``:
77+
For example, if you have a backend named ``foo`` and a package named
78+
``torch_foo``, and your package includes the following in its ``__init__.py``:
7979

8080
.. code-block:: python
8181

0 commit comments

Comments
 (0)