Why I get this error, no module named dgl.dataloading.pytorch

Hello
I am using pthon 3.8, pytorch version 1.13.1+cu116, Ubuntu 20, dgl 0.9.0 installed by using:
conda install -c dglteam dgl

I am trying to run one code that imports:
from dgl.dataloading.pytorch import NodeDataLoader

and I got this error:
ModuleNotFoundError: No module named ‘dgl.dataloading.pytorch’

any help will be appreciated

just import like this: from dgl.dataloading import NodeDataLoader. You can always import like this without specifying the pytorch explicitly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.