Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Oct 2, 2024
1 parent 580f538 commit d3bf018
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/anemoi/models/models/encoder_processor_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def __init__(
Graph definition
"""
super().__init__()
print('❌', graph_data)
print('❌', data_indices)

self._graph_data = graph_data
self._graph_name_data = config.graph.data
Expand Down Expand Up @@ -142,7 +140,7 @@ def _register_latlon(self, name: str, nodes: str) -> None:
Name of nodes to map
"""
print(nodes)
print('❌', self._graph_data[nodes])
# print(self._graph_data[nodes])
coords = self._graph_data[nodes].x
sin_cos_coords = torch.cat([torch.sin(coords), torch.cos(coords)], dim=-1)
self.register_buffer(f"latlons_{name}", sin_cos_coords, persistent=True)
Expand Down Expand Up @@ -278,11 +276,4 @@ def forward(self, x: Tensor, model_comm_group: Optional[ProcessGroup] = None) ->

# residual connection (just for the prognostic variables)
x_out[..., self._internal_output_idx] += x[:, -1, :, :, self._internal_input_idx]
return x_out

# class AnemoiModelEncProcDec(nn.Module):
# def __init__(self, *, config, data_indices, graph_data):
# super().__init__()
# def forward(self, x, model_comm_group=None):
# print('❌', type(x))
# return x
return x_out

0 comments on commit d3bf018

Please sign in to comment.