你好!我是Comate,很高兴能帮助你解答关于torch_geometric.nn模块中GCNConv类的导入问题。 模块和类名分析: 你尝试从torch_geometric.nn模块中导入一个名为gcnconv的类。 模块名检查: torch_geometric.nn是torch_geometric库中的一个子模块,专门用于图神经网络(Graph Neural Networks, GNNs)的层构建。这个模块名是...
(3)将全连接层替换成GCN层 fromtorch_geometric.nnimportGCNConvclassGCN(torch.nn.Module):def__init__(self, hidden_channels):super().__init__() torch.manual_seed(1234567) self.conv1 = GCNConv(dataset.num_features, hidden_channels)#GCN层,1433,16self.conv2 = GCNConv(hidden_channels, dataset...
🐛 Bug in Batch.from_data_list Batch.from_data_list() fails on dataset slices in latest pytorch_geometric version (2.0.1), while it worked at least up to version 1.7.2. To Reproduce Steps to reproduce the behavior: from torch_geometric.da...