Skip to content

Commit 2db4cee

Browse files
committed
update
1 parent a85ebed commit 2db4cee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

advanced_source/python_extension_autoload.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ This mechanism is implemented based on Python's `Entry points
155155
<https://packaging.python.org/en/latest/specifications/entry-points/>`_
156156
mechanism. We discover and load all of the specific entry points
157157
in ``torch/__init__.py`` that are defined by out-of-tree extensions.
158-
Its implementation is in `[RFC] Add support for device extension autoloading
158+
159+
As shown above, after installing ``torch_foo``, your Python module can be imported
160+
when loading the entry point you defined, and then you can do some necessary work when
161+
calling it.
162+
163+
See the implementation in this pull request: `[RFC] Add support for device extension autoloading
159164
<https://github.com/pytorch/pytorch/pull/127074>`_.
160165

161166
Conclusion

0 commit comments

Comments
 (0)