Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/transformers/models/swin/modeling_swin.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def forward(self, input_feature: torch.Tensor, input_dimensions: Tuple[int, int]
batch_size, dim, num_channels = input_feature.shape

input_feature = input_feature.view(batch_size, height, width, num_channels)
# pad input to be disible by width and height, if needed
# pad input to be divisible by width and height, if needed
input_feature = self.maybe_pad(input_feature, height, width)
# [batch_size, height/2, width/2, num_channels]
input_feature_0 = input_feature[:, 0::2, 0::2, :]
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/pipelines/pt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __next__(self):
# Try to return next item
processed = next(self.subiterator)
except StopIteration:
# When a preprocess iterator ends, we can start lookig at the next item
# When a preprocess iterator ends, we can start looking at the next item
# ChunkIterator will keep feeding until ALL elements of iterator
# all have created their subiterator and have been iterating against.
#
Expand Down