Files
pytorch/torch/csrc/jit/backends/backend_debug_info.cpp
2024-10-26 17:41:27 +00:00

20 lines
621 B
C++

#include <c10/macros/Macros.h>
#include <torch/csrc/jit/backends/backend_debug_info.h>
namespace torch::jit::backend {
namespace {
#ifdef BUILD_LITE_INTERPRETER
static auto cls = torch::class_<PyTorchBackendDebugInfoDummy>(
kBackendUtilsNamespace,
kBackendDebugInfoClass)
.def(torch::init<>());
#else
static auto cls = torch::class_<PyTorchBackendDebugInfo>(
kBackendUtilsNamespace,
kBackendDebugInfoClass)
.def(torch::init<>());
#endif
} // namespace
} // namespace torch::jit::backend