mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This reverts commit eb7365072315be2bc4259114e25e269801441748. Reverted https://github.com/pytorch/pytorch/pull/158427 on behalf of https://github.com/ZainRizvi due to Reverting this as part of reverting the stack for https://github.com/pytorch/pytorch/pull/158288 ([comment](https://github.com/pytorch/pytorch/pull/158427#issuecomment-3099815367))
14 lines
383 B
C++
14 lines
383 B
C++
#pragma once
|
|
|
|
#include <c10/core/impl/PyInterpreter.h>
|
|
#include <torch/csrc/Export.h>
|
|
#include <torch/csrc/utils/pybind.h>
|
|
|
|
namespace torch::detail {
|
|
TORCH_PYTHON_API py::handle getTorchApiFunction(const c10::OperatorHandle& op);
|
|
}
|
|
|
|
// TODO: Move these to a proper namespace
|
|
TORCH_PYTHON_API c10::impl::PyInterpreter* getPyInterpreter();
|
|
TORCH_PYTHON_API bool isMainPyInterpreter();
|