GCS_aamas337 icon indicating copy to clipboard operation
GCS_aamas337 copied to clipboard

Running issue

Open Bruce-Lan-ZY opened this issue 2 years ago • 2 comments

File "/home/zhangxi/code/GCS/onpolicy/algorithms/r_mappo/algorithm/graph_net_trans.py", line 22, in init self.GAT1 = GATConv(n_xdims, 8, heads=gat_nhead, concat=True, dropout=0.3) NameError: name 'GATConv' is not defined

Could you help me?

Bruce-Lan-ZY avatar Aug 19 '22 12:08 Bruce-Lan-ZY

  1. Sorry for that, you can you the upper part nn.TransformerEncoderLayer. The GAT with the fully connected graph is just equal to the Transformer.
  2. If you really want to use the GATConv , please import : from torch_geometric.nn import GCNConv

Amanda2024 avatar Aug 20 '22 02:08 Amanda2024

Sorry, I try again. But the function's arguments do not match.

  1. The GCNConv only has two arguments.
  2. The nn.TransformerEncoderLayer doesn't have the concatenate operation Can you show me the source code?

Bruce-Lan-ZY avatar Aug 21 '22 08:08 Bruce-Lan-ZY