mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Adding CD windows. Part of: https://github.com/pytorch/pytorch/issues/130249 Builder PR landed with smoke test: https://github.com/pytorch/builder/pull/2035 Pull Request resolved: https://github.com/pytorch/pytorch/pull/138095 Approved by: https://github.com/Skylion007, https://github.com/malfet
17 lines
476 B
C
17 lines
476 B
C
#include <torch/csrc/utils/python_compat.h>
|
|
#if defined(_WIN32) && IS_PYTHON_3_11_PLUS
|
|
#define Py_BUILD_CORE
|
|
#define NEED_OPCODE_TABLES // To get _PyOpcode_Deopt, _PyOpcode_Caches
|
|
|
|
#if IS_PYTHON_3_13_PLUS
|
|
#include <cpython/code.h> // To get PyUnstable_Code_GetFirstFree
|
|
#define NEED_OPCODE_METADATA
|
|
#include "internal/pycore_opcode_metadata.h"
|
|
#undef NEED_OPCODE_METADATA
|
|
#else
|
|
#include "internal/pycore_opcode.h"
|
|
#endif
|
|
|
|
#undef NEED_OPCODE_TABLES
|
|
#undef Py_BUILD_CORE
|
|
#endif
|