Hi DGL Team,
I am using dgl version ‘0.4.3post2’. I am trying to follow this tutorial Using DGLGraph on a GPU.
u, v = th.tensor([0, 1, 2]), th.tensor([2, 3, 4]) g = dgl.graph((u, v)) g.device
throws error
AttributeError: ‘DGLHeteroGraph’ object has no attribute ‘device’
cuda_g = g.to('cuda:0')
gives
AttributeError: ‘str’ object has no attribute ‘type’
I am using cuda10.1, pytorch=1.2.0. I followed the installation instructions from this link https://www.dgl.ai/pages/start.html
Could someone help me to fix this problem. Appreciate a lot in advance.
Niraj