Skip to content

Commit 90be2c9

Browse files
author
um1
committed
remove detach
1 parent 4afda1d commit 90be2c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

train.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ def train_model(model, criterion, optimizer, scheduler, num_epochs=25):
382382
swa_model.eval()
383383
with torch.no_grad():
384384
outputs2 = swa_model(inputs2) #stop gradient like dino
385-
outputs2 = outputs2.detach()
386385

387386
if return_feature:
388387
outputs2, _ = outputs2

0 commit comments

Comments
 (0)