Skip to content

Commit 59f1996

Browse files
author
Felipe Mello
committed
comment fix
1 parent e4cdd82 commit 59f1996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchtune/models/clip/_position_embeddings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _resize_local_position_embedding(
282282

283283
return local_pos_embed
284284

285-
# TODO: Switchswitch to public method after 2.5 is stable
285+
# TODO: Switch to public method after 2.5 is stable
286286
@staticmethod
287287
def _resize_global_position_embedding(
288288
global_pos_embed: torch.Tensor,
@@ -468,7 +468,7 @@ def __init__(
468468
# Register load hook to interpolate positional embeddings
469469
self._register_load_state_dict_pre_hook(self._load_state_dict_hook)
470470

471-
# TODO: Switchswitch to public method after 2.5 is stable
471+
# TODO: Switch to public method after 2.5 is stable
472472
@torch.no_grad()
473473
def _load_state_dict_hook(
474474
self,

0 commit comments

Comments
 (0)