Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Fatir Ansari committed Mar 24, 2024
1 parent 763540a commit 6ffc3ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chronos/chronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def __init__(self, config: ChronosConfig, model: PreTrainedModel) -> None:
def device(self):
return self.model.device

@torch.no_grad()
def encode(
self,
input_ids: torch.Tensor,
Expand Down Expand Up @@ -349,10 +348,12 @@ def _prepare_and_validate_context(

return context

@torch.no_grad()
def embed(
self, context: Union[torch.Tensor, List[torch.Tensor]]
) -> Tuple[torch.Tensor, torch.Tensor]:
"""Get encoder embeddings for the given time series.
"""
Get encoder embeddings for the given time series.
Parameters
----------
Expand Down

0 comments on commit 6ffc3ba

Please sign in to comment.