Skip to content
Snippets Groups Projects
Commit ff2575b3 authored by gent's avatar gent
Browse files

fix compile for eval_cls.py

parent 5822516e
No related branches found
No related tags found
No related merge requests found
......@@ -335,7 +335,7 @@ def main(args):
if args.pretrained_weights:
load_pretrained_weights(model, args.pretrained_weights, checkpoint_key=args.checkpoint_key, prefix=args.prefix)
if args.compile:
return torch.compile(model)
model = torch.compile(model)
trunc_normal_(model.head.weight, std=2e-5)
model.to(device)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment