Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions pytorch_forecasting/models/baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ def forward(self, x: dict[str, torch.Tensor]) -> dict[str, torch.Tensor]:
"""
Network forward pass.

Args:
x (Dict[str, torch.Tensor]): network input

Returns:
Dict[str, torch.Tensor]: network outputs
Parameters
----------
x : Dict[str, torch.Tensor]
network input

Returns
-------
Dict[str, torch.Tensor]
network outputs
"""
if isinstance(x["encoder_target"], tuple | list): # multiple targets
prediction = [
Expand Down
Loading