Skip to content

Commit

Permalink
Add optimize_ddp flag to test()
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanbsolak committed Nov 21, 2024
1 parent 92568a2 commit a9507b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ def test(test_loader, model, criterion, loggers, args, mode='ckpt', ckpt_name=No
torch._dynamo.reset() # pylint: disable=protected-access
model = torch.compile(model, mode=args.compiler_mode,
backend=args.compiler_backend)
torch._dynamo.config.optimize_ddp = False # pylint: disable=protected-access
msglogger.info(
'torch.compile() successful, mode=%s, cache limit=%d',
args.compiler_mode,
Expand Down

0 comments on commit a9507b0

Please sign in to comment.