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 | namespace torch { |
8 | namespace autograd { |
9 | namespace profiler { |
10 | using torch::profiler::impl::ActivityType; |
11 | using torch::profiler::impl::getProfilerConfig; |
12 | using torch::profiler::impl::ProfilerConfig; |
13 | using torch::profiler::impl::profilerEnabled; |
14 | using torch::profiler::impl::ProfilerState; |
15 | } // namespace profiler |
16 | } // namespace autograd |
17 | } // namespace torch |
18 | |