Skip to content

Commit

Permalink
Add kwargs to MGN forward. (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Kamenev authored Oct 29, 2024
1 parent 29774fe commit f7a5773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/cfd/aero_graph_net/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def forward(
node_features: Tensor,
edge_features: Tensor,
graph: Union[DGLGraph, list[DGLGraph], "CuGraphCSC"],
**kwargs,
) -> Tensor:
edge_features = self.edge_encoder(edge_features)
node_features = self.node_encoder(node_features)
Expand Down
1 change: 1 addition & 0 deletions modulus/models/meshgraphnet/meshgraphnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def forward(
node_features: Tensor,
edge_features: Tensor,
graph: Union[DGLGraph, List[DGLGraph], CuGraphCSC],
**kwargs,
) -> Tensor:
edge_features = self.edge_encoder(edge_features)
node_features = self.node_encoder(node_features)
Expand Down

0 comments on commit f7a5773

Please sign in to comment.