File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments