Add option to disable operator profiling (#5720)
Summary: X-link: https://github.com/pytorch/pytorch/pull/136838 Pull Request resolved: https://github.com/pytorch/executorch/pull/5720 For smaller models the overhead of profiling ops might be prohibitively large (distorting the inference execution time significantly) so we provide users an option to disable op profiling and essentially only profile the important events such as inference execution time. To disable operator profiling users need to do: ``` etdump_gen.set_event_tracer_profiling_level(executorch::runtime::EventTracerProfilingLevel::kNoOperatorProfiling); ``` Reviewed By: dbort Differential Revision: D61883224 fbshipit-source-id: f4fdcb67be00762152ca90b10239d10c2664a926
T
Tarun Karuturi committed
acfcdd54dff4600af9005d928a400c25190fa910
Parent: d9aeca5
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 10/4/2024, 10:34:29 PM