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 May 26, 2023
1 parent 67947f4 commit 0aa8e60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/torch/model/test_deepar_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def test_deepar_modules(
past_observed_values,
future_time_feat,
future_target,
future_observed_values,
)

assert scale.shape == (batch_size, 1)
Expand Down Expand Up @@ -231,6 +232,11 @@ def test_rnn_input(
dtype=torch.float32,
).view(1, prediction_length)

batch["future_observed_values"] = torch.ones(
(1, prediction_length),
dtype=torch.float32,
)

rnn_input, scale, _ = model.prepare_rnn_input(**batch)

assert (scale == 1.0).all()
Expand Down

0 comments on commit 0aa8e60

Please sign in to comment.