mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/62419 This diff adds support for cpu only kineto profiler on mobile. Thus enabling chrome trace generation on mobile. This bring cpp API for mobile profiling on part with Torchscript. This is done via: 1. Utilizating debug handle annotations in KinetoEvent. 2. Adding post processing capability, via callbacks, to KinetoThreadLocalState 3. Creating new RAII stype profiler, KinetoEdgeCPUProfiler, which can be used in surrounding scope of model execution. This will write chrome trace to the location specified in profiler constructor. Test Plan: MobileProfiler.ModuleHierarchy Imported from OSS Reviewed By: raziel Differential Revision: D29993660 fbshipit-source-id: 0b44f52f9e9c5f5aff81ebbd9273c254c3c03299 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| delegate_test.ptl | ||
| delegated_submodule_with_debug_info.ptl | ||
| light_model.ptl | ||
| main.cpp | ||
| sequence.ptl | ||
| test_lite_interpreter_runtime.cpp | ||
| test_mobile_profiler.cpp | ||
| to_be_profiled_module.ptl | ||