when using files in dgl/examples/pytorch/graphsage/dist, there is a problem
python3 partition_graph.py --dataset ogb-product --num_parts 2 --balance_train --balance_edges
load ogbn-products
This will download 1.38GB. Will you proceed? (y/N)
y
Using exist file products.zip
Extracting dataset/products.zip
Loading necessary files...
This might take a while.
Processing graphs...
100%|██████████████████████████████████████████████████| 1/1 [00:00<00:00, 2.06it/s]
Converting graphs into DGL objects...
100%|██████████████████████████████████████████████████| 1/1 [00:00<00:00, 9.39it/s]
Saving...
finish loading ogbn-products
finish constructing ogbn-products
load ogb-product takes 87.180 seconds
|V|=2449029, |E|=123718280
train: 196615, valid: 39323, test: 2213091
Traceback (most recent call last):
File "/home/node/workspace/dgl240-project/examples/pytorch/graphsage/dist/partition_graph.py", line 87, in <module>
dgl.distributed.partition_graph(
AttributeError: module 'dgl' has no attribute 'distributed'
This AttributeError occurs not only when partitioning, but also when distributed training. When I use the code from 2.3.1 for graph partitioning