You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating minibatch pretraining dataloader...
Traceback (most recent call last):
File "/home/s12gb-2/miniconda3/envs/graph_newset/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/s12gb-2/miniconda3/envs/graph_newset/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/s12gb-2/DangNha/reset_TXGNN/TxGNN/reproduce/train.py", line 50, in <module>
TxGNN.pretrain(n_epoch = 1,
File "/home/s12gb-2/DangNha/reset_TXGNN/TxGNN/txgnn/TxGNN.py", line 155, in pretrain
dataloader = dist.DistEdgeDataLoader(
File "/home/s12gb-2/miniconda3/envs/graph_newset/lib/python3.10/site-packages/dgl/distributed/dist_dataloader.py", line 863, in __init__
self.collator = EdgeCollator(g, eids, graph_sampler, **collator_kwargs)
File "/home/s12gb-2/miniconda3/envs/graph_newset/lib/python3.10/site-packages/dgl/distributed/dist_dataloader.py", line 634, in __init__
Collator.add_edge_attribute_to_graph(self.g, self.graph_sampler.prob)
File "/home/s12gb-2/miniconda3/envs/graph_newset/lib/python3.10/site-packages/dgl/distributed/dist_dataloader.py", line 325, in add_edge_attribute_to_graph
if g._use_graphbolt and data_name:
AttributeError: 'DGLGraph' object has no attribute '_use_graphbolt'
When i try to create a DistEdgeDataLoader for training. My code:
importdglimportdgl.distributedasdistdataloader=dist.DistEdgeDataLoader(
self.G, # Graph (should be a distributed DGLGraph)train_eid_dict, # Edge IDs (dict for heterogeneous graphs)sampler, # Graph sampler (e.g., NeighborSampler)negative_sampler=Minibatch_NegSampler(self.G, 1, 'fix_dst'), # For link predictionbatch_size=batch_size, # Batch sizeshuffle=True, # Shuffle edges during samplingdrop_last=False, # Keep incomplete batches# exclude='reverse_types', # Optional: for reverse edge exclusion# reverse_etypes=reverse_etypes, # Optional: reverse edge typesnum_workers=0# Avoid multiprocessing issues (for debugging)
)
🐛 Bug
I got the bug:
When i try to create a DistEdgeDataLoader for training. My code:
My Environment
conda
,pip
, source): pip install dgl==2.4.1 -f https://data.dgl.ai/wheels/torch-2.4/cu121/repo.htmlQuestion
This bug is come from dgl version right, how can i solve this bug or i have to wait the new update from dgl?
The text was updated successfully, but these errors were encountered: