Skip to content

Commit

Permalink
required_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush22iitbhu committed Oct 24, 2024
1 parent 328daad commit fb70bc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lightly/models/modules/ijepa.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ def forward(self, x, masks_x, masks):
Args:
x:
Input tensor.
Input tensor of shape (batch_size, sequence_length, feature_dim).
masks_x:
Mask indices for the input tensor.
Mask indices for the input tensor of shape (batch_size, num_patches).
masks:
Mask indices for the predicted tokens.
Mask indices for the predicted tokens of shape (batch_size, num_patches).
Returns:
The predicted output tensor.
The predicted output tensor of shape (batch_size, num_patches, output_dim).
"""
assert (masks is not None) and (
masks_x is not None
Expand Down
8 changes: 4 additions & 4 deletions lightly/models/modules/ijepa_timm.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ def forward(
Args:
x:
Input tensor.
Input tensor of shape (batch_size, sequence_length, feature_dim).
masks_x:
Mask indices for the input tensor.
Mask indices for the input tensor of shape (batch_size, num_patches).
masks:
Mask indices for the predicted tokens.
Mask indices for the predicted tokens of shape (batch_size, num_patches).
Returns:
The predicted output tensor.
The predicted output tensor of shape (batch_size, num_patches, output_dim).
"""

assert (masks is not None) and (
Expand Down

0 comments on commit fb70bc8

Please sign in to comment.