File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,22 +60,22 @@ This mechanism is implemented based on Python's `Entry points
60
60
<https://packaging.python.org/en/latest/specifications/entry-points/> `_
61
61
mechanism. We discover and load all of the specific entry points
62
62
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 ``.
65
63
Its implementation is in `[RFC] Add support for device extension autoloading
66
64
<https://github.com/pytorch/pytorch/pull/127074> `_.
67
65
68
66
.. note ::
69
67
68
+ This feature is enabled by default and can be disabled using
69
+ ``export TORCH_DEVICE_BACKEND_AUTOLOAD=0 ``.
70
70
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.
73
73
74
74
How to apply this to out-of-tree extensions?
75
75
--------------------------------------------
76
76
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 ``:
79
79
80
80
.. code-block :: python
81
81
You can’t perform that action at this time.
0 commit comments