Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Modify instantiation of bounding function to have statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
lzampier committed Dec 16, 2024
1 parent dfae71e commit 54f4ef8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/anemoi/models/models/encoder_processor_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ def __init__(
# Instantiation of model output bounding functions (e.g., to ensure outputs like TP are positive definite)
self.boundings = nn.ModuleList(
[
instantiate(cfg, name_to_index=self.data_indices.internal_model.output.name_to_index)
instantiate(
cfg,
name_to_index=self.data_indices.internal_model.output.name_to_index,
statistics=self.statistics,
name_to_index_stats=self.data_indices.data.input.name_to_index,
)
for cfg in getattr(model_config.model, "bounding", [])
]
)
Expand Down

0 comments on commit 54f4ef8

Please sign in to comment.