Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Fatir Ansari committed Mar 25, 2024
1 parent 9c44b7a commit 77b5244
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_chronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,9 @@ def test_pipeline_embed(torch_dtype: str):
device_map="cpu",
torch_dtype=torch_dtype,
)
model_context_length = pipeline.model.config.context_length
expected_embed_length = model_context_length + (
1 if pipeline.model.config.use_eos_token else 0
)
d_model = pipeline.model.model.config.d_model
context = 10 * torch.rand(size=(4, 16)) + 10
expected_embed_length = 16 + (1 if pipeline.model.config.use_eos_token else 0)

# input: tensor of shape (batch_size, context_length)

Expand Down

0 comments on commit 77b5244

Please sign in to comment.