Skip to content

Commit b420b4b

Browse files
[Fea] Integrate paddle_sparse toolkit into ppsci/externals (#1167)
* update submodules * update paddle_sparse submodule * update paddle_sparse head * update commit
1 parent e0f0245 commit b420b4b

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
[submodule "ppsci/externals/paddle_scatter"]
2323
path = ppsci/externals/paddle_scatter
2424
url = https://github.com/PFCCLab/paddle_scatter
25+
[submodule "ppsci/externals/paddle_sparse"]
26+
path = ppsci/externals/paddle_sparse
27+
url = https://github.com/PFCCLab/paddle_sparse.git

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ python -c "import paddle; paddle.utils.run_check()"
269269
| [tensorly](https://github.com/tensorly/tensorly) | 张量运算库 | 全量支持 |
270270
| [Open3D](https://github.com/PFCCLab/Open3D.git) | 三维图形库 | 全量支持 |
271271
| [neuraloperator](https://github.com/PFCCLab/neuraloperator) | 神经算子库 | 全量支持 |
272-
| [paddle_scatter](https://github.com/PFCCLab/paddle_scatter) | 张量稀疏计算库 | 全量支持 |
272+
| [paddle_scatter](https://github.com/PFCCLab/paddle_scatter) | 张量稀疏聚合库 | 全量支持 |
273+
| [paddle_sparse](https://github.com/PFCCLab/paddle_sparse) | 张量稀疏计算库 | 全量支持 |
273274
| [paddle_harmonics](https://github.com/PFCCLab/paddle_harmonics.git) | 球面谐波变换库 | 全量支持 |
274275
| [deepali](https://github.com/PFCCLab/deepali) | 图像、点云配准库 | 全量支持 |
275276
| [DLPACK(v0.8)](https://dmlc.github.io/dlpack/latest/index.html) | 跨框架张量内存共享协议 | 全量支持 |

docs/zh/install_setup.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,15 @@ PaddleScience 提供了多种第三方库供用户在开发时使用,这些库
268268
python -m pip install -e ppsci/externals/paddle_scatter
269269
```
270270

271+
=== "paddle_sparse"
272+
273+
``` sh
274+
cd PaddleScience
275+
git submodule update --init ppsci/externals/paddle_sparse
276+
# install from source(recommended)
277+
python -m pip install -e ppsci/externals/paddle_sparse
278+
```
279+
271280
=== "tensorly"
272281

273282
``` sh
@@ -299,7 +308,7 @@ PaddleScience 提供了多种第三方库供用户在开发时使用,这些库
299308
``` python
300309
>>> from ppsci import externals
301310
>>> print(externals.__all__)
302-
['deepali', 'open3d', 'paddle_harmonics', 'paddle_scatter', 'tensorly', 'warp']
311+
['deepali', 'open3d', 'paddle_harmonics', 'paddle_scatter', 'paddle_sparse', 'tensorly', 'warp']
303312
304313
>>> tl = externals.tensorly
305314
>>> tl.set_backend("paddle")

ppsci/externals/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"open3d",
99
"paddle_harmonics",
1010
"paddle_scatter",
11+
"paddle_sparse",
1112
"tensorly",
1213
"warp",
1314
]

ppsci/externals/paddle_sparse

Submodule paddle_sparse added at 960fe36

ppsci/externals/warp

Submodule warp updated 192 files

0 commit comments

Comments
 (0)