[ONNX] Fix torch_onnx patch accuracy bug in benchmark (#130586)

The ONNX related compilers have another route of accuracy check, and this PR brings torch_onnx compiler to the right measurement.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/130586
Approved by: https://github.com/justinchuby
This commit is contained in:
titaiwangms 2024-07-12 15:47:57 +00:00 committed by PyTorch MergeBot
parent e5657024b5
commit 18418a7dbb

View File

@ -4005,7 +4005,7 @@ def run(runner, args, original_dir=None):
)
experiment = speedup_experiment_onnx
output_filename = "torch_onnx_patch.csv"
current_onnx_compiler = "torch_onnx_patch"
current_onnx_compiler = "dynamo"
elif args.dynamo_onnx:
optimize_ctx = functools.partial(
optimize_onnx_ctx,