mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
This reverts commit e3d3f2b22e.
Reverted https://github.com/pytorch/pytorch/pull/145750 on behalf of https://github.com/eellison due to bisected perf regression ([comment](https://github.com/pytorch/pytorch/pull/145750#issuecomment-2620028414))
19 lines
518 B
C++
19 lines
518 B
C++
#pragma once
|
|
#include <torch/csrc/python_headers.h>
|
|
// C2039 MSVC
|
|
#include <pybind11/complex.h>
|
|
#include <torch/csrc/utils/pybind.h>
|
|
|
|
#include <Python.h>
|
|
// The visibility attribute is to avoid a warning about storing a field in the
|
|
// struct that has a different visibility (from pybind) than the struct.
|
|
#ifdef _WIN32
|
|
#define VISIBILITY_HIDDEN
|
|
#else
|
|
#define VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
|
|
#endif
|
|
|
|
namespace torch::dynamo {
|
|
PyObject* torch_c_dynamo_utils_init();
|
|
} // namespace torch::dynamo
|