Skip to content

Commit

Permalink
Fix CI after torchmetrics update
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe3rd committed Dec 8, 2022
1 parent 189828c commit 7e40466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xformers/benchmarks/benchmark_vit_timm.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(
self.head = nn.Linear(dim, num_classes)

self.criterion = torch.nn.CrossEntropyLoss()
self.val_accuracy = Accuracy()
self.val_accuracy = Accuracy(task="multiclass", num_classes=num_classes)

@staticmethod
def linear_warmup_cosine_decay(warmup_steps, total_steps):
Expand Down

0 comments on commit 7e40466

Please sign in to comment.