Skip to content

Commit 5a0f00e

Browse files
committed
update
1 parent 6ac2d2e commit 5a0f00e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

advanced_source/python_extension_autoload.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ integrate your out-of-tree extension with PyTorch using the autoloading mechanis
6666

6767
`habana_frameworks.torch`_ is a Python package that enables users to run
6868
PyTorch programs on Intel Gaudi via the PyTorch ``HPU`` device key.
69-
``import habana_frameworks.torch`` is no longer necessary after this mechanism
70-
is applied.
7169

7270
.. _habana_frameworks.torch: https://docs.habana.ai/en/latest/PyTorch/Getting_Started_with_PyTorch_and_Gaudi/Getting_Started_with_PyTorch.html
7371

@@ -137,7 +135,7 @@ We define an entry point in `torch_npu/setup.py`_:
137135
)
138136
139137
Unlike ``habana_frameworks``, ``torch_npu`` uses the environment variable ``TORCH_DEVICE_BACKEND_AUTOLOAD``
140-
to control the autoloading process. For example, we set it to `0` to disable autoloading to prevent circular imports:
138+
to control the autoloading process. For example, we set it to ``0`` to disable autoloading to prevent circular imports:
141139

142140
.. code-block:: python
143141

0 commit comments

Comments
 (0)