Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacmg committed Sep 1, 2020
1 parent 498d69e commit db972bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions flood_forecast/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def generate_decoded_predictions(
hours_to_forecast,
real_target_tensor,
decoder_params["unsqueeze_dim"],
output_len=model.params["dataset_params"]["forecast_length"],
device=model.device,
)
end_tensor = end_tensor[:, :, 0].view(-1).to("cpu").detach()
Expand Down
1 change: 1 addition & 0 deletions flood_forecast/transformer_xl/transformer_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def greedy_decode(
max_len: int,
real_target: torch.Tensor,
unsqueeze_dim=1,
output_len=1,
device='cpu'):
"""
Mechanism to sequentially decode the model
Expand Down

0 comments on commit db972bc

Please sign in to comment.