We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffdc59 commit f04bdc8Copy full SHA for f04bdc8
inference.py
@@ -73,7 +73,7 @@ def main():
73
(args.model, sum([m.numel() for m in model.parameters()])))
74
75
config = resolve_data_config(vars(args), model=model)
76
- model, test_time_pool = model, False if args.no_test_pool else apply_test_time_pool(model, config)
+ model, test_time_pool = (model, False) if args.no_test_pool else apply_test_time_pool(model, config)
77
78
if args.num_gpu > 1:
79
model = torch.nn.DataParallel(model, device_ids=list(range(args.num_gpu))).cuda()
0 commit comments