Skip to content

Commit

Permalink
added **kwargs to predict step
Browse files Browse the repository at this point in the history
  • Loading branch information
cathalobrien committed Jan 15, 2025
1 parent be9460d commit fdd92e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/src/anemoi/models/interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def _build_model(self) -> None:
# Use the forward method of the model directly
self.forward = self.model.forward

def predict_step(self, batch: torch.Tensor, model_comm_group: Optional[ProcessGroup] = None) -> torch.Tensor:
def predict_step(
self, batch: torch.Tensor, model_comm_group: Optional[ProcessGroup] = None, **kwargs
) -> torch.Tensor:
"""Prediction step for the model.
Parameters
Expand Down

0 comments on commit fdd92e6

Please sign in to comment.