Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Fatir Ansari committed Mar 25, 2024
1 parent 6fe6f37 commit ceea8f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/chronos/chronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ def embed(
A tuple of two tensors: the encoder embeddings and the decoding_context,
e.g., the scale of the time series in the case of mean scaling.
The encoder embeddings are shaped (batch_size, context_length, d_model)
or (batch_size, context_length + 1, d_model), where the extra 1 is for EOS.
If your original time series were shorter than the model's context_length,
please slice the returned embeddings along the time axis accordingly.
or (batch_size, context_length + 1, d_model), where context_length
is the size of the context along the time axis if a 2D tensor was provided
or the length of the longest time series, if a list of 1D tensors was
provided, and the extra 1 is for EOS.
"""
context = self._prepare_and_validate_context(context=context)
token_ids, attention_mask, decoding_context = self.tokenizer.input_transform(
Expand Down

0 comments on commit ceea8f5

Please sign in to comment.