From cffb7f7f5015f09d12c585c2566b034cdd92f583 Mon Sep 17 00:00:00 2001 From: Yakhyokhuja Valikhujaev Date: Wed, 21 Sep 2022 17:15:30 +0900 Subject: [PATCH] Typo fix in comment in mvit.py (#6618) Co-authored-by: Nicolas Hug --- torchvision/models/video/mvit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/models/video/mvit.py b/torchvision/models/video/mvit.py index 94ed87b360c..1b5118b53f5 100644 --- a/torchvision/models/video/mvit.py +++ b/torchvision/models/video/mvit.py @@ -147,7 +147,7 @@ def _add_rel_pos( k_t_ratio = max(q_t / k_t, 1.0) dist_t = torch.arange(q_t)[:, None] * q_t_ratio - (torch.arange(k_t)[None, :] + (1.0 - k_t)) * k_t_ratio - # Intepolate rel pos if needed. + # Interpolate rel pos if needed. rel_pos_h = _interpolate(rel_pos_h, dh) rel_pos_w = _interpolate(rel_pos_w, dw) rel_pos_t = _interpolate(rel_pos_t, dt)