GraphGAN-pytorch
GraphGAN-pytorch copied to clipboard
问题请教
File "/home/user/code/GraphGan/src/GraphGAN/graph_gan.py", line 57, in init self.build_generator() File "/home/user/code/GraphGan/src/GraphGAN/graph_gan.py", line 92, in build_generator self.generator = generator.Generator(n_node=self.n_node, node_emd_init = self.node_embed_init_g) File "/home/user/code/GraphGan/src/GraphGAN/generator.py", line 20, in init self.node_embedding = torch.index_select(self.embedding_matrix, 0, self.node_id) TypeError: index_select() received an invalid combination of arguments - got (Tensor, int, int), but expected one of:
- (Tensor input, name dim, Tensor index, *, Tensor out)
- (Tensor input, int dim, Tensor index, *, Tensor out)
文件“/home/user/code/GraphGan/src/GraphGAN/graph_gan.py”,第 57 行,在init self.build_generator() 文件“/home/user/code/GraphGan/src/GraphGAN/graph_gan.py”中,第 92 行,在 build_generator self.generator = generator.Generator(n_node=self.n_node, node_emd_init = self.node_embed_init_g) 文件“/home/user/code/GraphGan/src/GraphGAN/generator.py”,第 20 行,在init self.node_embedding = torch.index_select(self.embedding_matrix, 0, self.node_id) TypeError: index_select() 收到了无效的参数组合 - 得到(Tensor, int, int),但期望以下之一:
- (Tensor input, name dim, Tensor index, *, Tensor out)
- (Tensor input, int dim, Tensor index, *, Tensor out)
I have the same problem, have you solved it?