Skip to content

Commit

Permalink
refactor: remove global config edge attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Jul 22, 2024
1 parent 0558563 commit 62cefe8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/anemoi/models/models/encoder_processor_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def __init__(
self._graph_data = graph_data
self._graph_name_data = config.graph.data
self._graph_name_hidden = config.graph.hidden
self.edge_attributes = config.model.attributes.edges

self._calculate_shapes_and_indices(data_indices)
self._assert_matching_indices(data_indices)
Expand All @@ -79,7 +78,6 @@ def __init__(
in_channels_dst=self.latlons_hidden.shape[1] + self.trainable_hidden_size,
hidden_dim=self.num_channels,
sub_graph=self._graph_data[(self._graph_name_data, "to", self._graph_name_hidden)],
sub_graph_edge_attributes=self.edge_attributes,
src_grid_size=self._data_grid_size,
dst_grid_size=self._hidden_grid_size,
)
Expand All @@ -89,7 +87,6 @@ def __init__(
config.model.processor,
num_channels=self.num_channels,
sub_graph=self._graph_data[(self._graph_name_hidden, "to", self._graph_name_hidden)],
sub_graph_edge_attributes=self.edge_attributes,
src_grid_size=self._hidden_grid_size,
dst_grid_size=self._hidden_grid_size,
)
Expand All @@ -102,7 +99,6 @@ def __init__(
hidden_dim=self.num_channels,
out_channels_dst=self.num_output_channels,
sub_graph=self._graph_data[(self._graph_name_hidden, "to", self._graph_name_data)],
sub_graph_edge_attributes=self.edge_attributes,
src_grid_size=self._hidden_grid_size,
dst_grid_size=self._data_grid_size,
)
Expand Down

0 comments on commit 62cefe8

Please sign in to comment.