Skip to content

Commit 6215e6e

Browse files
committed
update
1 parent ee33c2d commit 6215e6e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

advanced_source/python_backend_autoload.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ experience and enables users to adhere to the familiar PyTorch device
1111
programming model without needing to explicitly load or import device-specific
1212
extensions. On the other hand, it facilitates effortless
1313
adoption of existing PyTorch applications with zero-code changes on
14-
out-of-tree devices.
14+
out-of-tree devices. For more information,
15+
see `[RFC] Autoload Device Extension <rfc>`_.
16+
17+
.. _rfc: https://github.com/pytorch/pytorch/issues/122468
1518

1619
Examples
1720
^^^^^^^^
@@ -58,9 +61,12 @@ How it works
5861
This mechanism is implemented based on Python's `entry_points`_ mechanism.
5962
We discover and load all of the specific entry points in ``torch/__init__.py``
6063
that are defined by out-of-tree extensions.
64+
Its implementation is in `[RFC] Add support for device extension autoloading <impl>`_
6165

6266
.. _entry_points: https://packaging.python.org/en/latest/specifications/entry-points/
6367

68+
.. _impl: https://github.com/pytorch/pytorch/pull/127074
69+
6470
How to apply this to out-of-tree extensions?
6571
--------------------------------------------
6672

0 commit comments

Comments
 (0)