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

1 comment on commit 166c902

@vivekh2000
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the redundant line.

Please sign in to comment.