mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Using `include-what-you-use` tool to find out and remove some unused includes Pull Request resolved: https://github.com/pytorch/pytorch/pull/93359 Approved by: https://github.com/malfet
16 lines
384 B
C++
16 lines
384 B
C++
#include <c10/core/SafePyObject.h>
|
|
|
|
namespace c10 {
|
|
|
|
PyObject* SafePyObject::ptr(const c10::impl::PyInterpreter* interpreter) const {
|
|
TORCH_INTERNAL_ASSERT(interpreter == pyinterpreter_);
|
|
return data_;
|
|
}
|
|
|
|
PyObject* SafePyHandle::ptr(const c10::impl::PyInterpreter* interpreter) const {
|
|
TORCH_INTERNAL_ASSERT(interpreter == pyinterpreter_);
|
|
return data_;
|
|
}
|
|
|
|
} // namespace c10
|