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