[ONNX] Set dump_exported_program to True in bench (#131670)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131670
Approved by: https://github.com/titaiwangms
This commit is contained in:
Justin Chu
2024-07-24 20:02:03 +00:00
committed by PyTorch MergeBot
parent 85fa66be04
commit 9db567f17d

View File

@ -1690,7 +1690,7 @@ class OnnxModelFromTorchScript(OnnxModel):
torch_onnx.patch_torch(
error_report=True,
profile=True,
dump_exported_program=False,
dump_exported_program=True,
artifacts_dir=os.path.dirname(output_path),
)
else: