Skip to content

Commit 166c902

Browse files
authored
Update distill.py
This was redundant, not used anywhere.
1 parent 90be723 commit 166c902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vit_pytorch/distill.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(
127127
)
128128

129129
def forward(self, img, labels, temperature = None, alpha = None, **kwargs):
130-
b, *_ = img.shape
130+
131131
alpha = alpha if exists(alpha) else self.alpha
132132
T = temperature if exists(temperature) else self.temperature
133133

0 commit comments

Comments
 (0)