Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
42297995
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
42297995
编写于
4月 26, 2022
作者:
zhouweiwei2014
提交者:
GitHub
4月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix python3.10 compile bug on windows (#42140) (#42180)
cherry-pick #42140
上级
a887ffd0
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
46 addition
and
1 deletion
+46
-1
paddle/fluid/pybind/bind_fleet_executor.h
paddle/fluid/pybind/bind_fleet_executor.h
+4
-0
paddle/fluid/pybind/compatible.h
paddle/fluid/pybind/compatible.h
+4
-0
paddle/fluid/pybind/eager_functions.cc
paddle/fluid/pybind/eager_functions.cc
+6
-0
paddle/fluid/pybind/eager_method.cc
paddle/fluid/pybind/eager_method.cc
+6
-0
paddle/fluid/pybind/eager_utils.h
paddle/fluid/pybind/eager_utils.h
+5
-0
paddle/fluid/pybind/inference_api.h
paddle/fluid/pybind/inference_api.h
+5
-0
paddle/fluid/pybind/io.h
paddle/fluid/pybind/io.h
+5
-0
paddle/fluid/pybind/op_function_common.h
paddle/fluid/pybind/op_function_common.h
+5
-0
paddle/fluid/pybind/protobuf.h
paddle/fluid/pybind/protobuf.h
+4
-0
python/paddle/fluid/tests/unittests/cc_imp_py_test.cc
python/paddle/fluid/tests/unittests/cc_imp_py_test.cc
+2
-1
未找到文件。
paddle/fluid/pybind/bind_fleet_executor.h
浏览文件 @
42297995
...
...
@@ -14,6 +14,10 @@
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <pybind11/pybind11.h>
namespace
paddle
{
...
...
paddle/fluid/pybind/compatible.h
浏览文件 @
42297995
...
...
@@ -14,6 +14,10 @@
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <pybind11/pybind11.h>
namespace
paddle
{
...
...
paddle/fluid/pybind/eager_functions.cc
浏览文件 @
42297995
...
...
@@ -9,6 +9,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
// disable numpy compile error
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <Python.h>
#include <string>
...
...
paddle/fluid/pybind/eager_method.cc
浏览文件 @
42297995
...
...
@@ -9,6 +9,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
// disable numpy compile error
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <Python.h>
#include <string>
...
...
paddle/fluid/pybind/eager_utils.h
浏览文件 @
42297995
...
...
@@ -10,6 +10,11 @@ See the License for the specific language governing permissions and
limitations under the License. */
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <Python.h>
#include "paddle/phi/common/backend.h"
#include "paddle/phi/common/data_type.h"
...
...
paddle/fluid/pybind/inference_api.h
浏览文件 @
42297995
...
...
@@ -14,6 +14,11 @@
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <pybind11/pybind11.h>
namespace
paddle
{
...
...
paddle/fluid/pybind/io.h
浏览文件 @
42297995
...
...
@@ -14,6 +14,11 @@ limitations under the License. */
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <Python.h>
#include "paddle/fluid/pybind/pybind_boost_headers.h"
...
...
paddle/fluid/pybind/op_function_common.h
浏览文件 @
42297995
...
...
@@ -14,6 +14,11 @@
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <pybind11/chrono.h>
#include <pybind11/complex.h>
#include <pybind11/functional.h>
...
...
paddle/fluid/pybind/protobuf.h
浏览文件 @
42297995
...
...
@@ -13,6 +13,10 @@ See the License for the specific language governing permissions and
limitations under the License. */
#pragma once
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
#include <Python.h>
#include <fstream>
...
...
python/paddle/fluid/tests/unittests/cc_imp_py_test.cc
浏览文件 @
42297995
...
...
@@ -50,7 +50,8 @@ TEST(CC, IMPORT_PY) {
// 3. C/C++ Run Python file
std
::
string
file_name
(
cwd
);
file_name
.
append
(
"/test_install_check.py"
);
FILE
*
fp
=
_Py_fopen
(
file_name
.
c_str
(),
"r+"
);
PyObject
*
obj
=
Py_BuildValue
(
"s"
,
file_name
.
c_str
());
FILE
*
fp
=
_Py_fopen_obj
(
obj
,
"r+"
);
ASSERT_TRUE
(
fp
!=
NULL
);
ASSERT_FALSE
(
PyRun_SimpleFile
(
fp
,
file_name
.
c_str
()));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录