Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] pytorch-forecasting#1752 Fixing #1782

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pytorch_forecasting/data/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,7 @@ def to_dataloader(

Parameters
----------
train : bool, optional, default=Trze
train : bool, optional, default=True
whether dataloader is used for training (True) or prediction (False).
Will shuffle and drop last batch if True. Defaults to True.
batch_size : int, optional, default=64
Expand Down
2 changes: 1 addition & 1 deletion pytorch_forecasting/models/base/_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def on_predict_epoch_end(
if self.return_decoder_lengths:
output["decoder_lengths"] = torch.cat(self._decode_lengths, dim=0)
if self.return_y:
y = concat_sequences([yi[0] for yi in self._y])
y = _torch_cat_na([yi[0] for yi in self._y])
if self._y[-1][1] is None:
weight = None
else:
Expand Down
Loading