Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Jul 25, 2023
1 parent 849ac96 commit 799fd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchbenchmark/models/clip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, test, device, jit=False, batch_size=1, extra_args=[]):
# Create optimizer
self.loss_fn = ContrastiveLossWithTemperature()
self.optimizer = torch.optim.AdamW(
list(self.model.parameters()) + list(loss_fn.parameters()),
list(self.model.parameters()) + list(self.loss_fn.parameters()),
lr=5.0e-4,
weight_decay=1.0e-4,
eps=1.0e-6,
Expand Down

0 comments on commit 799fd71

Please sign in to comment.