1 #pragma once 2 #include <torch/csrc/python_headers.h> 3 // C2039 MSVC 4 #include <pybind11/complex.h> 5 #include <torch/csrc/utils/pybind.h> 6 7 #include <Python.h> 8 // The visibility attribute is to avoid a warning about storing a field in the 9 // struct that has a different visibility (from pybind) than the struct. 10 #ifdef _WIN32 11 #define VISIBILITY_HIDDEN 12 #else 13 #define VISIBILITY_HIDDEN __attribute__((visibility("hidden"))) 14 #endif 15 16 namespace torch::dynamo { 17 PyObject* torch_c_dynamo_utils_init(); 18 } // namespace torch::dynamo 19