Skip to content

Commit

Permalink
fix(roland): fix typo in model/utils.py (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland0511 authored Nov 5, 2024
1 parent 761bfa9 commit edee973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lzero/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def renormalize(inputs: torch.Tensor, first_dim: int = 1) -> torch.Tensor:
min_val = torch.min(flat_input, first_dim, keepdim=True).values
flat_input = (flat_input - min_val) / (max_val - min_val)

return flat_input.view(*input.shape)
return flat_input.view(*inputs.shape)


def get_dynamic_mean(model: nn.Module) -> float:
Expand Down

0 comments on commit edee973

Please sign in to comment.