Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
64cdcd52
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
64cdcd52
编写于
10月 10, 2020
作者:
W
wanghuancoder
提交者:
GitHub
10月 10, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cherry-pick _cuda_synchronize to 1.8, test=develop (#27803)
上级
11c9169f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
9 addition
and
1 deletion
+9
-1
paddle/fluid/pybind/pybind.cc
paddle/fluid/pybind/pybind.cc
+4
-0
python/paddle/fluid/__init__.py
python/paddle/fluid/__init__.py
+3
-1
python/paddle/fluid/core.py
python/paddle/fluid/core.py
+2
-0
未找到文件。
paddle/fluid/pybind/pybind.cc
浏览文件 @
64cdcd52
...
@@ -1497,6 +1497,10 @@ All parameter, weight, gradient are variables in Paddle.
...
@@ -1497,6 +1497,10 @@ All parameter, weight, gradient are variables in Paddle.
m
.
def
(
"is_compiled_with_mkldnn"
,
IsCompiledWithMKLDNN
);
m
.
def
(
"is_compiled_with_mkldnn"
,
IsCompiledWithMKLDNN
);
m
.
def
(
"is_compiled_with_brpc"
,
IsCompiledWithBrpc
);
m
.
def
(
"is_compiled_with_brpc"
,
IsCompiledWithBrpc
);
m
.
def
(
"is_compiled_with_dist"
,
IsCompiledWithDIST
);
m
.
def
(
"is_compiled_with_dist"
,
IsCompiledWithDIST
);
m
.
def
(
"_cuda_synchronize"
,
[](
const
platform
::
CUDAPlace
&
place
)
{
platform
::
DeviceContextPool
::
Instance
().
Get
(
place
)
->
Wait
();
});
m
.
def
(
"run_cmd"
,
m
.
def
(
"run_cmd"
,
[](
const
std
::
string
&
cmd
,
int
time_out
=
-
1
,
[](
const
std
::
string
&
cmd
,
int
time_out
=
-
1
,
int
sleep_inter
=
-
1
)
->
const
std
::
string
{
int
sleep_inter
=
-
1
)
->
const
std
::
string
{
...
...
python/paddle/fluid/__init__.py
浏览文件 @
64cdcd52
...
@@ -88,6 +88,7 @@ from .dygraph.base import enable_dygraph, disable_dygraph, enable_imperative, di
...
@@ -88,6 +88,7 @@ from .dygraph.base import enable_dygraph, disable_dygraph, enable_imperative, di
from
.io
import
save
,
load
,
load_program_state
,
set_program_state
from
.io
import
save
,
load
,
load_program_state
,
set_program_state
from
.dygraph.checkpoint
import
save_dygraph
,
load_dygraph
from
.dygraph.checkpoint
import
save_dygraph
,
load_dygraph
from
.dygraph.varbase_patch_methods
import
monkey_patch_varbase
from
.dygraph.varbase_patch_methods
import
monkey_patch_varbase
from
.core
import
_cuda_synchronize
Tensor
=
LoDTensor
Tensor
=
LoDTensor
__all__
=
framework
.
__all__
+
executor
.
__all__
+
\
__all__
=
framework
.
__all__
+
executor
.
__all__
+
\
...
@@ -128,7 +129,8 @@ __all__ = framework.__all__ + executor.__all__ + \
...
@@ -128,7 +129,8 @@ __all__ = framework.__all__ + executor.__all__ + \
'install_check'
,
'install_check'
,
'save'
,
'save'
,
'load'
,
'load'
,
'VarBase'
'VarBase'
,
'_cuda_synchronize'
]
]
...
...
python/paddle/fluid/core.py
浏览文件 @
64cdcd52
...
@@ -260,6 +260,7 @@ if avx_supported():
...
@@ -260,6 +260,7 @@ if avx_supported():
from
.core_avx
import
_save_dygraph_dict
from
.core_avx
import
_save_dygraph_dict
from
.core_avx
import
_load_dygraph_dict
from
.core_avx
import
_load_dygraph_dict
from
.core_avx
import
_create_loaded_parameter
from
.core_avx
import
_create_loaded_parameter
from
.core_avx
import
_cuda_synchronize
if
sys
.
platform
!=
'win32'
:
if
sys
.
platform
!=
'win32'
:
from
.core_avx
import
_set_process_pids
from
.core_avx
import
_set_process_pids
from
.core_avx
import
_erase_process_pids
from
.core_avx
import
_erase_process_pids
...
@@ -304,6 +305,7 @@ if load_noavx:
...
@@ -304,6 +305,7 @@ if load_noavx:
from
.core_noavx
import
_save_dygraph_dict
from
.core_noavx
import
_save_dygraph_dict
from
.core_noavx
import
_load_dygraph_dict
from
.core_noavx
import
_load_dygraph_dict
from
.core_noavx
import
_create_loaded_parameter
from
.core_noavx
import
_create_loaded_parameter
from
.core_noavx
import
_cuda_synchronize
if
sys
.
platform
!=
'win32'
:
if
sys
.
platform
!=
'win32'
:
from
.core_noavx
import
_set_process_pids
from
.core_noavx
import
_set_process_pids
from
.core_noavx
import
_erase_process_pids
from
.core_noavx
import
_erase_process_pids
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录