Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
d53e567a
P
Paddle
项目概览
Crayon鑫
/
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看板
未验证
提交
d53e567a
编写于
9月 10, 2021
作者:
S
ShenLiang
提交者:
GitHub
9月 10, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug of recompute in hybridparallel (#35588)
上级
652da1f4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
0 deletion
+8
-0
paddle/fluid/operators/flatten_op.cu.cc
paddle/fluid/operators/flatten_op.cu.cc
+5
-0
python/paddle/distributed/fleet/meta_parallel/pp_utils/utils.py
.../paddle/distributed/fleet/meta_parallel/pp_utils/utils.py
+1
-0
python/paddle/fluid/contrib/mixed_precision/fp16_lists.py
python/paddle/fluid/contrib/mixed_precision/fp16_lists.py
+1
-0
python/paddle/fluid/dygraph/amp/auto_cast.py
python/paddle/fluid/dygraph/amp/auto_cast.py
+1
-0
未找到文件。
paddle/fluid/operators/flatten_op.cu.cc
浏览文件 @
d53e567a
...
@@ -15,6 +15,7 @@ limitations under the License. */
...
@@ -15,6 +15,7 @@ limitations under the License. */
#include "paddle/fluid/operators/flatten_op.h"
#include "paddle/fluid/operators/flatten_op.h"
namespace
ops
=
paddle
::
operators
;
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_CUDA_KERNEL
(
REGISTER_OP_CUDA_KERNEL
(
flatten
,
ops
::
FlattenKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
flatten
,
ops
::
FlattenKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
...
@@ -50,6 +51,8 @@ REGISTER_OP_CUDA_KERNEL(
...
@@ -50,6 +51,8 @@ REGISTER_OP_CUDA_KERNEL(
flatten_contiguous_range
,
flatten_contiguous_range
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
float
>
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
double
>
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeKernel
<
paddle
::
platform
::
CUDADeviceContext
,
...
@@ -63,6 +66,8 @@ REGISTER_OP_CUDA_KERNEL(
...
@@ -63,6 +66,8 @@ REGISTER_OP_CUDA_KERNEL(
flatten_contiguous_range_grad
,
flatten_contiguous_range_grad
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
float
>
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
double
>
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
ops
::
FlattenContiguousRangeGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
...
...
python/paddle/distributed/fleet/meta_parallel/pp_utils/utils.py
浏览文件 @
d53e567a
...
@@ -133,6 +133,7 @@ def _split_activation(tensor):
...
@@ -133,6 +133,7 @@ def _split_activation(tensor):
# use inplace operation to save memory
# use inplace operation to save memory
data
=
tensor
.
flatten_
()
data
=
tensor
.
flatten_
()
part_size
=
tensor_numel
//
mp_degree
part_size
=
tensor_numel
//
mp_degree
start
=
part_size
*
mp_rank
start
=
part_size
*
mp_rank
end
=
start
+
part_size
end
=
start
+
part_size
...
...
python/paddle/fluid/contrib/mixed_precision/fp16_lists.py
浏览文件 @
d53e567a
...
@@ -94,6 +94,7 @@ black_list = {
...
@@ -94,6 +94,7 @@ black_list = {
'softmax'
,
'softmax'
,
'softmax_with_cross_entropy'
,
'softmax_with_cross_entropy'
,
'sigmoid_cross_entropy_with_logits'
,
'sigmoid_cross_entropy_with_logits'
,
'c_softmax_with_cross_entropy'
,
'cross_entropy'
,
'cross_entropy'
,
'cross_entropy2'
,
'cross_entropy2'
,
# fp16 is slower than fp32, though fp16 is supported.
# fp16 is slower than fp32, though fp16 is supported.
...
...
python/paddle/fluid/dygraph/amp/auto_cast.py
浏览文件 @
d53e567a
...
@@ -45,6 +45,7 @@ BLACK_LIST = {
...
@@ -45,6 +45,7 @@ BLACK_LIST = {
'softmax'
,
'softmax'
,
'softmax_with_cross_entropy'
,
'softmax_with_cross_entropy'
,
'sigmoid_cross_entropy_with_logits'
,
'sigmoid_cross_entropy_with_logits'
,
'c_softmax_with_cross_entropy'
,
'cross_entropy'
,
'cross_entropy'
,
'cross_entropy2'
,
'cross_entropy2'
,
# default fp32 can avoid return inf when the sum value large than 65504
# default fp32 can avoid return inf when the sum value large than 65504
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录