mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Import python_compat.h
This commit is contained in:
@ -6,6 +6,16 @@
|
||||
// initializers that are not supported in older C++ standards, but is supported
|
||||
// in C.
|
||||
|
||||
#include <torch/csrc/utils/python_compat.h>
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS
|
||||
#pragma message("is Python 3.14+")
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#pragma message("WIN32 defined")
|
||||
#endif
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS && defined(_WIN32)
|
||||
|
||||
#define Py_BUILD_CORE
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/utils/python_compat.h>
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS && defined(_WIN32)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user