Skip to content

Commit

Permalink
Add cores usage and use 100*precision
Browse files Browse the repository at this point in the history
  • Loading branch information
juexinwang committed May 24, 2020
1 parent 91a65be commit 16350af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
torch.manual_seed(args.seed)
device = torch.device("cuda" if args.cuda else "cpu")

if not args.coresUsage == 'all'
if not args.coresUsage == 'all':
torch.set_num_threads(int(args.coresUsage))

kwargs = {'num_workers': 1, 'pin_memory': True} if args.cuda else {}
Expand Down

0 comments on commit 16350af

Please sign in to comment.