Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JPXKQX committed Oct 18, 2024
1 parent fdbf92f commit 659652f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anemoi/models/layers/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def register_fixed_attributes(self, graph_data: HeteroData) -> None:
"""Register fixed attributes."""
self.nodes_names = list(graph_data.node_types)
self.num_nodes = {nodes_name: graph_data[nodes_name].num_nodes for nodes_name in self.nodes_names}
self.coord_dims = {2 * graph_data[nodes_name].x.shape[1] for nodes_name in self.nodes_names}
self.attr_ndims = {self.coord_dims[nodes_name] + self.num_trainable_params for nodes_name in self.nodes_names}
self.coord_dims = {nodes_name: 2 * graph_data[nodes_name].x.shape[1] for nodes_name in self.nodes_names}
self.attr_ndims = {nodes_name: self.coord_dims[nodes_name] + self.num_trainable_params for nodes_name in self.nodes_names}

def register_coordinates(self, name: str, node_coords: torch.Tensor) -> None:
"""Register coordinates."""
Expand Down

0 comments on commit 659652f

Please sign in to comment.