dgl icon indicating copy to clipboard operation
dgl copied to clipboard

Error on Apple M1 pro

Open ChenNed opened this issue 2 years ago • 2 comments

KeyError: 'mps'

When I tried to use DGLGraph.to('mps'), a "keyerror" was issued.

Data error when use tensorflow

When I tried to load the Cora dataset, the following error occurred:

“_dgl.ffi.base.DGLError: Cannot assign node feature "train_mask" on device /gpu:0 to a graph on device /cpu:0. Call DGLGraph.to() to copy the graph to the same device.

Note: I install the latest version of dgl (0.9.0), pytorch (1.12.0) and tensorflow-metal(2.9).

How can I solve this problem.

ChenNed avatar Jul 20 '22 13:07 ChenNed

For the first one, DGL currently does not support mps device on M1. The second one looks like a bug on tensorflow support.

BarclayII avatar Jul 25 '22 05:07 BarclayII

Does 'mps' device require special kernel implementation?

jermainewang avatar Jul 25 '22 07:07 jermainewang