运行过程中,好像需要将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.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)。不知道是不是我自己的原因。