Skip to content

Commit

Permalink
fix type-hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jwdink committed Apr 19, 2024
1 parent 634a681 commit b676e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchcast/internals/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def ragged_cat(tensors: Sequence[torch.Tensor],


@torch.no_grad()
def true1d_idx(arr: Union[np.ndarray, torch.Tensor]) -> np.ndarray:
def true1d_idx(arr: Union[np.ndarray, torch.Tensor]) -> torch.Tensor:
if not isinstance(arr, torch.Tensor):
arr = torch.as_tensor(arr)
arr = arr.bool()
Expand Down

0 comments on commit b676e2c

Please sign in to comment.