mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
e5657024b5
commit
18418a7dbb
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user