Skip to content

Commit

Permalink
refactor: reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vectorvp committed Nov 29, 2024
1 parent 658dd83 commit da8dd51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightly/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,9 +1276,7 @@ def repeat_interleave_batch(x: Tensor, B: int, repeat: int) -> Tensor:
return x


def apply_masks(
x: Tensor, masks: Tensor | list[Tensor]
) -> Tensor:
def apply_masks(x: Tensor, masks: Tensor | list[Tensor]) -> Tensor:
"""Apply masks to the input tensor.
From https://github.com/facebookresearch/ijepa/blob/main/src/masks/utils.py
Expand Down

0 comments on commit da8dd51

Please sign in to comment.