mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
This reverts commit f0121528364f6023c69f49e69fabc00863a5ef57.
Reverted https://github.com/pytorch/pytorch/pull/78032 on behalf of https://github.com/suo due to This broke windows binary builds, see: f012152836
30 lines
712 B
C++
30 lines
712 B
C++
#include <torch/csrc/python_headers.h>
|
|
#ifdef _MSC_VER
|
|
#include <c10/util/win32-headers.h>
|
|
#endif
|
|
#include <structmember.h>
|
|
|
|
#include <libshm.h>
|
|
#include <torch/csrc/THP.h>
|
|
#include <torch/csrc/copy_utils.h>
|
|
#include <torch/csrc/DynamicTypes.h>
|
|
#include <torch/csrc/CudaIPCTypes.h>
|
|
#include <torch/csrc/Device.h>
|
|
#include <torch/csrc/autograd/utils/wrap_outputs.h>
|
|
#include <c10/core/CPUAllocator.h>
|
|
|
|
#include <fmt/format.h>
|
|
|
|
// NOLINTNEXTLINE(bugprone-suspicious-include)
|
|
#include <torch/csrc/generic/Storage.cpp>
|
|
#include <torch/csrc/THGenerateByteType.h>
|
|
|
|
#include <c10/util/intrusive_ptr.h>
|
|
|
|
template<>
|
|
void THPPointer<c10::StorageImpl>::free() {
|
|
if (ptr) {
|
|
c10::raw::intrusive_ptr::decref(ptr);
|
|
}
|
|
}
|