mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/138976 Approved by: https://github.com/Skylion007
20 lines
621 B
C++
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
|