Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Fatir Ansari committed May 26, 2023
1 parent 0aa8e60 commit 0e859d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gluonts/torch/model/deepar/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def prepare_rnn_input(
observed_input = observed_context
future_length = future_time_feat.shape[-2]
if future_length > 1:
assert future_target is not None
assert (
future_target is not None
and future_observed_values is not None
)
input = torch.cat(
(input, future_target[..., : future_length - 1] / scale),
dim=-1,
Expand Down

0 comments on commit 0e859d3

Please sign in to comment.