xref: /aosp_15_r20/external/pytorch/torch/csrc/profiler/api.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/profiler/orchestration/observer.h>
4 
5 // There are some components which use these symbols. Until we migrate them
6 // we have to mirror them in the old autograd namespace.
7 
8 namespace torch::autograd::profiler {
9 using torch::profiler::impl::ActivityType;
10 using torch::profiler::impl::getProfilerConfig;
11 using torch::profiler::impl::ProfilerConfig;
12 using torch::profiler::impl::profilerEnabled;
13 using torch::profiler::impl::ProfilerState;
14 } // namespace torch::autograd::profiler
15