mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Reland of https://github.com/pytorch/pytorch/pull/84675 Pull Request resolved: https://github.com/pytorch/pytorch/pull/84976 Approved by: https://github.com/zou3519
22 lines
357 B
C++
22 lines
357 B
C++
#include <torch/csrc/autograd/jit_decomp_interface.h>
|
|
|
|
namespace torch {
|
|
namespace autograd {
|
|
namespace impl {
|
|
|
|
namespace {
|
|
JitDecompInterface* impl = nullptr;
|
|
}
|
|
|
|
void setJitDecompImpl(JitDecompInterface* impl_) {
|
|
impl = impl_;
|
|
}
|
|
|
|
JitDecompInterface* getJitDecompImpl() {
|
|
return impl;
|
|
}
|
|
|
|
} // namespace impl
|
|
} // namespace autograd
|
|
} // namespace torch
|