Skip to content

Commit d45c468

Browse files
committed
revert
1 parent 81accc2 commit d45c468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chronos/chronos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def predict(
524524
)
525525
prediction = self.tokenizer.output_transform(
526526
samples.to(scale.device), scale
527-
)
527+
).to(context_tensor)
528528

529529
predictions.append(prediction)
530530
remaining -= prediction.shape[-1]
@@ -536,7 +536,7 @@ def predict(
536536
[context_tensor, prediction.median(dim=1).values], dim=-1
537537
)
538538

539-
return torch.cat(predictions, dim=-1).to(context_tensor)
539+
return torch.cat(predictions, dim=-1)
540540

541541
@classmethod
542542
def from_pretrained(cls, *args, **kwargs):

0 commit comments

Comments
 (0)