Skip to content

Commit

Permalink
Update distill.py
Browse files Browse the repository at this point in the history
This was redundant, not used anywhere.
  • Loading branch information
vivekh2000 authored Jun 11, 2024
1 parent 90be723 commit 166c902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vit_pytorch/distill.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(
)

def forward(self, img, labels, temperature = None, alpha = None, **kwargs):
b, *_ = img.shape

alpha = alpha if exists(alpha) else self.alpha
T = temperature if exists(temperature) else self.temperature

Expand Down

0 comments on commit 166c902

Please sign in to comment.