Skip to content

Commit 7e074f5

Browse files
committed
fix GAT model edge-index and act error
1 parent 823a333 commit 7e074f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chebai_graph/models/gat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, config: dict, **kwargs):
3737
edge_dim=self.n_bond_properties,
3838
heads=self.heads,
3939
v2=self.v2,
40-
act=ELU,
40+
act=self.activation,
4141
)
4242

4343
def forward(self, batch: dict) -> torch.Tensor:
@@ -59,7 +59,7 @@ def forward(self, batch: dict) -> torch.Tensor:
5959

6060
out = self.gat(
6161
x=graph_data.x.float(),
62-
edge_index=graph_data.edge_index,
62+
edge_index=graph_data.edge_index.long(),
6363
edge_attr=graph_data.edge_attr,
6464
)
6565

0 commit comments

Comments
 (0)