Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wmsofts
Paddle
提交
e34c79c7
P
Paddle
项目概览
wmsofts
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
0
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
e34c79c7
编写于
3月 14, 2023
作者:
C
chenxujun
提交者:
GitHub
3月 14, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos (#51379)
上级
6737226f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
10 deletion
+10
-10
paddle/fluid/eager/pylayer/py_layer_node.cc
paddle/fluid/eager/pylayer/py_layer_node.cc
+1
-1
paddle/fluid/framework/details/all_reduce_op_handle.cc
paddle/fluid/framework/details/all_reduce_op_handle.cc
+1
-1
paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc
...uid/framework/details/bind_threaded_ssa_graph_executor.cc
+1
-1
paddle/fluid/framework/details/eager_deletion_op_handle.cc
paddle/fluid/framework/details/eager_deletion_op_handle.cc
+1
-1
paddle/fluid/framework/details/fetch_async_op_handle.cc
paddle/fluid/framework/details/fetch_async_op_handle.cc
+1
-1
paddle/fluid/framework/details/multi_devices_helper.h
paddle/fluid/framework/details/multi_devices_helper.h
+2
-2
paddle/fluid/framework/details/op_handle_base.h
paddle/fluid/framework/details/op_handle_base.h
+3
-3
未找到文件。
paddle/fluid/eager/pylayer/py_layer_node.cc
浏览文件 @
e34c79c7
...
...
@@ -165,7 +165,7 @@ GradNodePyLayer::operator()(
this
->
OutputMeta
()[
i
][
0
].
IsStopGradient
(),
true
,
paddle
::
platform
::
errors
::
InvalidArgument
(
"%s's backward function should not return emp
yt
at %d position."
,
"%s's backward function should not return emp
ty
at %d position."
,
name
(),
i
));
grad_out
.
push_back
({});
...
...
paddle/fluid/framework/details/all_reduce_op_handle.cc
浏览文件 @
e34c79c7
...
...
@@ -135,7 +135,7 @@ void AllReduceOpHandle::AllReduceImpl(
if
(
i
==
0
)
{
numel
=
static_cast
<
int64_t
>
(
lod_tensor
.
numel
());
// only enforce place0, we will enforce other p
al
ce numel == place0 numel
// only enforce place0, we will enforce other p
la
ce numel == place0 numel
PADDLE_ENFORCE_GT
(
numel
,
0
,
...
...
paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc
浏览文件 @
e34c79c7
...
...
@@ -144,7 +144,7 @@ FetchResultType BindThreadedSSAGraphExecutor::RunMainStream(
while
(
cur_count
<
op_deps
->
size
())
{
cur_count
++
;
auto
cur_op
=
ready_ops
->
Pop
();
// when ex
ec
ption, get cur_op == nullptr
// when ex
ce
ption, get cur_op == nullptr
if
(
cur_op
==
nullptr
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
mutex_
);
exec_op_count_
=
op_deps
->
size
();
...
...
paddle/fluid/framework/details/eager_deletion_op_handle.cc
浏览文件 @
e34c79c7
...
...
@@ -59,7 +59,7 @@ EagerDeletionOpHandle::EagerDeletionOpHandle(
#endif
PADDLE_ENFORCE_NOT_NULL
(
event_
,
platform
::
errors
::
InvalidArgument
(
"The cuda e
nve
t created is NULL."
));
platform
::
errors
::
InvalidArgument
(
"The cuda e
ven
t created is NULL."
));
}
}
#endif
...
...
paddle/fluid/framework/details/fetch_async_op_handle.cc
浏览文件 @
e34c79c7
...
...
@@ -203,7 +203,7 @@ void FetchAsyncOpHandle::FetchMergedLodTensor(
}
// slice and memcpy
// for 0D tensor, can't concat ea
t
h tensor, stack them. for 1+D tensor, concat
// for 0D tensor, can't concat ea
c
h tensor, stack them. for 1+D tensor, concat
// them
int
begin
=
0
;
int
end
=
0
;
...
...
paddle/fluid/framework/details/multi_devices_helper.h
浏览文件 @
e34c79c7
...
...
@@ -44,8 +44,8 @@ namespace details {
// all variable in each devices.
// The outside vector is the device vector. Each element of this vector is a
// map from variable name to variables. The variables, who have the same name,
// will have a differ
s
ent version. The offset in the
// `std::vector<VarHandle*>` is the version of var
ai
bles.
// will have a different version. The offset in the
// `std::vector<VarHandle*>` is the version of var
ia
bles.
typedef
std
::
vector
<
std
::
unordered_map
<
std
::
string
,
std
::
vector
<
VarHandle
*>>>
GraphVars
;
constexpr
char
kGraphVars
[]
=
"vars"
;
...
...
paddle/fluid/framework/details/op_handle_base.h
浏览文件 @
e34c79c7
...
...
@@ -154,10 +154,10 @@ class OpHandleBase {
std
::
vector
<
Scope
*>
local_exec_scopes_
;
bool
skip_running_
=
false
;
// NOTE(Aurelius84): Indicate whether scope held in OpHandle is chan
a
geable.
// Ophandle's scope nor
am
lly keep same in most cases, except running
// NOTE(Aurelius84): Indicate whether scope held in OpHandle is changeable.
// Ophandle's scope nor
ma
lly keep same in most cases, except running
// run_program_op from @to_static.
// The scope may be chan
a
ged while each training iteration.
// The scope may be changed while each training iteration.
// See https://github.com/PaddlePaddle/Paddle/pull/32283
bool
is_variant_scope_
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录