Metadata-Version: 2.4
Name: dgl-ascend
Version: 2.5.1
Summary: Deep Graph Library with Ascend NPU support
Home-page: https://gitcode.com/AI4Science/dgl-ascend
Author: dgl-ascend-team
Author-email: lihepeng1@huawei.com
Maintainer: dgl-ascend Team
License: APACHE
Project-URL: Source, https://gitcode.com/AI4Science/dgl-ascend
Project-URL: Issue Tracker, https://gitcode.com/AI4Science/dgl-ascend/issues
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Description-Content-Type: text/markdown
Requires-Dist: torch==2.7.1
Requires-Dist: torch_npu==2.7.1.post2
Requires-Dist: networkx>=2.1
Requires-Dist: numpy>=1.14.0
Requires-Dist: packaging
Requires-Dist: pandas
Requires-Dist: psutil>=5.8.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pyyaml
Requires-Dist: requests>=2.19.0
Requires-Dist: scipy>=1.1.0
Requires-Dist: tqdm
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: maintainer
Dynamic: project-url
Dynamic: requires-dist
Dynamic: summary

# dgl-ascend

Deep Graph Library (DGL) with Ascend NPU support, developed by the BUPT-GAMMA group.

## Installation

```bash
pip install dgl-ascend
```

Requirements: Ascend 910B NPU, CANN >= 8.5, aarch64 Linux, Python 3.11.

## Quick Start

```python
import torch
import torch_npu
import dgl

device = torch.device("npu:0")
g = dgl.graph(([0, 1, 2], [1, 2, 3])).to(device)
g.update_all(dgl.function.copy_u("x", "m"), dgl.function.sum("m", "h"))
```

## License

Apache License 2.0.
