Skip to content

Commit 523d289

Browse files
committed
update
1 parent b4e884d commit 523d289

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

advanced_source/python_extension_autoload.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ Define an entry point in `torch_npu/setup.py`_:
9696
setup(
9797
name="torch_npu",
9898
version="2.5",
99-
+ entry_points={
100-
+ 'torch.backends': [
101-
+ 'torch_npu = torch_npu:_autoload',
102-
+ ],
103-
+ }
99+
+ entry_points={
100+
+ 'torch.backends': [
101+
+ 'torch_npu = torch_npu:_autoload',
102+
+ ],
103+
+ }
104104
)
105105
106106
``import torch_npu`` is also no longer needed after applying this mechanism:

0 commit comments

Comments
 (0)