Skip to content

Commit fed3fc4

Browse files
[BUG] pytorch-forecasting#1752 Fixing
1 parent 6d64360 commit fed3fc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytorch_forecasting/data/timeseries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ def to_dataloader(
25132513
25142514
Parameters
25152515
----------
2516-
train : bool, optional, default=Trze
2516+
train : bool, optional, default=True
25172517
whether dataloader is used for training (True) or prediction (False).
25182518
Will shuffle and drop last batch if True. Defaults to True.
25192519
batch_size : int, optional, default=64

pytorch_forecasting/models/base/_base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def on_predict_epoch_end(
387387
if self.return_decoder_lengths:
388388
output["decoder_lengths"] = torch.cat(self._decode_lengths, dim=0)
389389
if self.return_y:
390-
y = concat_sequences([yi[0] for yi in self._y])
390+
y = _torch_cat_na([yi[0] for yi in self._y])
391391
if self._y[-1][1] is None:
392392
weight = None
393393
else:

0 commit comments

Comments
 (0)