1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#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
|