divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.82k stars 281 forks source link

Tutorial for GNN Explainability--Code Example--problems #152

Closed gongchenghua closed 1 year ago

gongchenghua commented 1 year ago

https://diveintographs.readthedocs.io/en/latest/tutorials/subgraphx.html Hi! when I follow the code example, I find that in step 2: def check_checkpoints(root='./'): if osp.exists(osp.join(root, 'checkpoints')): return url = ('https://github.com/divelab/DIG_storage/raw/main/xgraph/checkpoints.zip') path = download_url(url, root) extract_zip(path, root) os.unlink(path) here download_url is not defined, so what should I do to solve the problems?

Oceanusity commented 1 year ago

I think you can try from torch_geometric.data.download import download_url.