File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,20 @@ as ``npu`` to the end users.
87
87
88
88
.. _torch_npu : https://github.com/Ascend/pytorch
89
89
90
- Define an entry point in `torch_npu/setup.py <https://github.com/Ascend/pytorch/blob/c164fbd5bb74790191ff8496b77d620fddf806d8/setup.py#L618 >`_:
90
+ Define an entry point in `torch_npu/setup.py `_:
91
+
92
+ .. _torch_npu/setup.py : https://github.com/Ascend/pytorch/blob/c164fbd5bb74790191ff8496b77d620fddf806d8/setup.py#L618
91
93
92
94
.. code-block :: diff
93
95
94
96
setup(
95
97
name="torch_npu",
96
98
version="2.5",
97
- + entry_points={
98
- + 'torch.backends': [
99
- + 'torch_npu = torch_npu:_autoload',
100
- + ],
101
- + }
99
+ + entry_points={
100
+ + 'torch.backends': [
101
+ + 'torch_npu = torch_npu:_autoload',
102
+ + ],
103
+ + }
102
104
)
103
105
104
106
``import torch_npu `` is also no longer needed after applying this mechanism:
You can’t perform that action at this time.
0 commit comments