HeterSumGraph
HeterSumGraph copied to clipboard
需要将G.to_device("cuda")改为G=G.to_device("cuda")
运行过程中,好像需要将G.to_device("cuda")改为G=G.to_device("cuda"),否则会报错RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)。不知道是不是我自己的原因。
我也遇到了相同的问题,然后通过改为G=G.to_device("cuda") 解决了