mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127266 Approved by: https://github.com/soulitzer
15 lines
510 B
C++
15 lines
510 B
C++
#pragma once
|
|
|
|
#include <torch/csrc/profiler/orchestration/observer.h>
|
|
|
|
// There are some components which use these symbols. Until we migrate them
|
|
// we have to mirror them in the old autograd namespace.
|
|
|
|
namespace torch::autograd::profiler {
|
|
using torch::profiler::impl::ActivityType;
|
|
using torch::profiler::impl::getProfilerConfig;
|
|
using torch::profiler::impl::ProfilerConfig;
|
|
using torch::profiler::impl::profilerEnabled;
|
|
using torch::profiler::impl::ProfilerState;
|
|
} // namespace torch::autograd::profiler
|