Error for importing LogMemoryMixin, MultithreadingMixin in torch_geometric.loader.mixin #8849
Answered
by
rusty1s
songsong0425
asked this question in
Q&A
-
Hi, while I generating the custom from torch_geometric.data import Data, FeatureStore, GraphStore, HeteroData
from torch_geometric.loader.base import DataLoaderIterator
from torch_geometric.loader.mixin import (
AffinityMixin,
LogMemoryMixin,
MultithreadingMixin,
)
from torch_geometric.loader.utils import (
filter_custom_hetero_store,
filter_custom_store,
filter_data,
filter_hetero_data,
get_edge_label_index,
infer_filter_per_worker,
)
...
ImportError: cannot import name 'LogMemoryMixin' from 'torch_geometric.loader.mixin' (/scratch/r902a02/.conda/envs/PyG_scratch1/lib/python3.9/site-packages/torch_geometric/loader/mixin.py) Not only import torch_geometric
print(torch_geometric.__version__)
#2.4.0.dev20231204 Should I update the version of PyG? Or is there any bug in the library? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Feb 1, 2024
Replies: 1 comment 1 reply
-
You would either need to update PyG (these mixins got added recently), or simply remove their dependency from your custom |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
songsong0425
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would either need to update PyG (these mixins got added recently), or simply remove their dependency from your custom
LinkNeighborLoader
.