GraphBolt是DGL的一个依赖库,用于加速图神经网络的操作。在某些版本的DGL中,GraphBolt是自动安装的。然而,如果DGL安装后仍然报错找不到GraphBolt库,可能是因为安装过程中出现了问题。 你可以尝试重新安装DGL,以确保GraphBolt库也被正确安装: bash pip uninstall dgl pip install dgl 确认GraphBolt库的安装路径: 如...
dgl._ffi.base.DGLError: Cannot assign node feature “n_feat” on device cuda:0 to a graph on device cpu. 很显然,我们没有把向量同步到我们模型的所用的计算设备上。 一般,我们用<你的dgl对象名称>.to(<你的设备>)来解决。如下。 g.to(torch.device('cuda:0')) 1. 但是发现无效。 后来搜索到...
❓ Questions and Help (Pdb) l 80 75 graph = nx.from_numpy_matrix(L) 76 g = dgl.DGLGraph(graph) 77 input_shape = (177, 9) 78 input_layer = tf.ones((177,9)) 79 # input_layer = tfk.Input(shape = input_shape, name="input_obs") 80 #lay1 = tfkl...
dgl._ffi.base.DGLError: Cannot assign node feature “feat“ on device cuda:0 to a graph on device cpu. dgl/ at master · dmlc/dgl · GitHub 这个链接是一些dgl的版本变化可能会带来的问题以及解决方法 我的代码在这一行报错, 当我写了(args['device'])之后,还是一样的,我觉得很是...
🐛 Bug Hi, I use CPP torch fronted API with thrust library (but independent). When I call torch function mask_select on tensor which is a store at GPU and mask which is store on GPU too (result is store on GPU), I get an error. terminate ...