Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
10758725
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
10758725
编写于
5月 19, 2023
作者:
G
Galaxy1458
提交者:
GitHub
5月 19, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test,test=develop (#53811)
上级
c1f4005a
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
34 addition
and
30 deletion
+34
-30
paddle/fluid/operators/collective/alltoall_op.h
paddle/fluid/operators/collective/alltoall_op.h
+1
-1
paddle/fluid/operators/collective/c_identity_op.h
paddle/fluid/operators/collective/c_identity_op.h
+1
-1
paddle/fluid/operators/collective/c_reducescatter_op.h
paddle/fluid/operators/collective/c_reducescatter_op.h
+1
-1
paddle/fluid/operators/collective/c_split_op.h
paddle/fluid/operators/collective/c_split_op.h
+1
-1
paddle/phi/kernels/cpu/index_put_kernel.cc
paddle/phi/kernels/cpu/index_put_kernel.cc
+1
-1
paddle/phi/kernels/cpu/reduce_scatter_kernel.cc
paddle/phi/kernels/cpu/reduce_scatter_kernel.cc
+4
-4
paddle/phi/kernels/cpu/rnn_functor.h
paddle/phi/kernels/cpu/rnn_functor.h
+1
-1
paddle/phi/kernels/funcs/lamb_functors.h
paddle/phi/kernels/funcs/lamb_functors.h
+6
-6
paddle/phi/kernels/funcs/layer_norm_util.h
paddle/phi/kernels/funcs/layer_norm_util.h
+3
-1
paddle/phi/kernels/funcs/math_function.cc
paddle/phi/kernels/funcs/math_function.cc
+1
-1
paddle/phi/kernels/funcs/pooling.h
paddle/phi/kernels/funcs/pooling.h
+1
-1
paddle/phi/kernels/funcs/selected_rows_functor.cc
paddle/phi/kernels/funcs/selected_rows_functor.cc
+1
-1
paddle/phi/kernels/funcs/sequence_padding.cc
paddle/phi/kernels/funcs/sequence_padding.cc
+2
-2
paddle/phi/kernels/funcs/sequence_padding.h
paddle/phi/kernels/funcs/sequence_padding.h
+3
-3
paddle/phi/kernels/funcs/tensor_to_string.h
paddle/phi/kernels/funcs/tensor_to_string.h
+3
-1
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
+1
-1
paddle/phi/kernels/gpu/rnn_functor.h
paddle/phi/kernels/gpu/rnn_functor.h
+1
-1
paddle/phi/kernels/impl/transpose_grad_kernel_impl.h
paddle/phi/kernels/impl/transpose_grad_kernel_impl.h
+1
-1
paddle/phi/kernels/sparse/cpu/sum_grad_kernel.cc
paddle/phi/kernels/sparse/cpu/sum_grad_kernel.cc
+1
-1
未找到文件。
paddle/fluid/operators/collective/alltoall_op.h
浏览文件 @
10758725
...
...
@@ -32,7 +32,7 @@ namespace operators {
template
<
typename
T
,
typename
DeviceContext
>
class
AllToAllOpCPUKernel
:
public
framework
::
OpKernel
<
T
>
{
public:
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
)
const
override
{
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
UNUSED
)
const
override
{
PADDLE_THROW
(
platform
::
errors
::
Unavailable
(
"Do not support alltoall for cpu kernel now."
));
}
...
...
paddle/fluid/operators/collective/c_identity_op.h
浏览文件 @
10758725
...
...
@@ -28,7 +28,7 @@ namespace operators {
template
<
typename
T
,
typename
DeviceContext
>
class
CIdentityOpCPUKernel
:
public
framework
::
OpKernel
<
T
>
{
public:
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
)
const
override
{
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
UNUSED
)
const
override
{
PADDLE_THROW
(
platform
::
errors
::
Unavailable
(
"Do not support c_identity for cpu kernel now."
));
}
...
...
paddle/fluid/operators/collective/c_reducescatter_op.h
浏览文件 @
10758725
...
...
@@ -30,7 +30,7 @@ namespace operators {
template
<
typename
T
,
typename
DeviceContext
>
class
CReduceScatterOpCPUKernel
:
public
framework
::
OpKernel
<
T
>
{
public:
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
)
const
override
{
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
UNUSED
)
const
override
{
PADDLE_THROW
(
platform
::
errors
::
Unimplemented
(
"Unimplemented cpu kernel for CReduceScatterOp."
));
}
...
...
paddle/fluid/operators/collective/c_split_op.h
浏览文件 @
10758725
...
...
@@ -28,7 +28,7 @@ namespace operators {
template
<
typename
T
,
typename
DeviceContext
>
class
CSplitOpCPUKernel
:
public
framework
::
OpKernel
<
T
>
{
public:
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
)
const
override
{
void
Compute
(
const
framework
::
ExecutionContext
&
ctx
UNUSED
)
const
override
{
PADDLE_THROW
(
platform
::
errors
::
Unavailable
(
"Do not support c_split for cpu kernel now."
));
}
...
...
paddle/phi/kernels/cpu/index_put_kernel.cc
浏览文件 @
10758725
...
...
@@ -22,7 +22,7 @@ namespace phi {
template
<
typename
T
>
void
index_put_kernel
(
const
int64_t
N
,
const
T
*
x
,
const
T
*
x
UNUSED
,
const
T
*
vals
,
const
int64_t
**
indices
,
const
phi
::
DDim
&
stride
,
...
...
paddle/phi/kernels/cpu/reduce_scatter_kernel.cc
浏览文件 @
10758725
...
...
@@ -20,10 +20,10 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
ReduceScatterKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
int
nranks
,
DenseTensor
*
out
)
{
void
ReduceScatterKernel
(
const
Context
&
dev_ctx
UNUSED
,
const
DenseTensor
&
x
UNUSED
,
int
nranks
UNUSED
,
DenseTensor
*
out
UNUSED
)
{
PADDLE_THROW
(
errors
::
Unimplemented
(
"Unimplemented cpu kernel for CReduceScatterOp."
));
}
...
...
paddle/phi/kernels/cpu/rnn_functor.h
浏览文件 @
10758725
...
...
@@ -275,7 +275,7 @@ void RnnFunc(const Context& dev_ctx,
DenseTensor
*
dropout_mask
,
int
num_layers
,
int
gate_num
,
int
input_size
,
int
input_size
UNUSED
,
int
hidden_size
,
bool
is_bidirec
,
const
std
::
string
&
cell_type
,
...
...
paddle/phi/kernels/funcs/lamb_functors.h
浏览文件 @
10758725
...
...
@@ -398,12 +398,12 @@ struct LambBetaPowUpdateFunctor {
template
<
typename
MT
>
struct
LambBetaPowUpdateFunctor
<
MT
,
/*NeedUpdateBetaPow=*/
false
>
{
void
SetBetaPows
(
const
MT
*
beta1pow
,
const
MT
*
beta2pow
,
MT
*
beta1pow_out
,
MT
*
beta2pow_out
,
MT
beta1
,
MT
beta2
)
{}
void
SetBetaPows
(
const
MT
*
beta1pow
UNUSED
,
const
MT
*
beta2pow
UNUSED
,
MT
*
beta1pow_out
UNUSED
,
MT
*
beta2pow_out
UNUSED
,
MT
beta1
UNUSED
,
MT
beta2
UNUSED
)
{}
HOSTDEVICE
void
UpdateBetaPow
(
size_t
)
const
{}
};
...
...
paddle/phi/kernels/funcs/layer_norm_util.h
浏览文件 @
10758725
...
...
@@ -70,7 +70,9 @@ class RowwiseMean2D<phi::GPUContext, T> {
template
<
typename
T
>
class
RowwiseMean2D
<
phi
::
CPUContext
,
T
>
{
public:
RowwiseMean2D
(
int
left
,
int
right
,
const
DeviceContext
&
dev_ctx
)
{}
RowwiseMean2D
(
int
left
UNUSED
,
int
right
UNUSED
,
const
DeviceContext
&
dev_ctx
UNUSED
)
{}
void
operator
()(
const
phi
::
CPUContext
&
context
,
const
DenseTensor
&
input
,
...
...
paddle/phi/kernels/funcs/math_function.cc
浏览文件 @
10758725
...
...
@@ -204,7 +204,7 @@ struct TensorSetConstantWithPlace
:
context_
(
context
),
tensor_
(
tensor
),
value_
(
value
)
{}
template
<
typename
Place
>
void
operator
()(
Place
place
)
const
{
void
operator
()(
Place
place
UNUSED
)
const
{
set_constant_with_place
<
Place
>
(
context_
,
tensor_
,
value_
);
}
...
...
paddle/phi/kernels/funcs/pooling.h
浏览文件 @
10758725
...
...
@@ -73,7 +73,7 @@ class MaxPoolGrad {
public:
static
constexpr
bool
use_x
=
true
;
HOSTDEVICE
inline
void
compute
(
const
T
&
x
,
const
T
&
y
,
const
T
&
dy
,
T
scale
,
T
*
dx
)
{
const
T
&
x
,
const
T
&
y
,
const
T
&
dy
,
T
scale
UNUSED
,
T
*
dx
)
{
*
dx
+=
dy
*
static_cast
<
T
>
(
x
==
y
);
}
};
...
...
paddle/phi/kernels/funcs/selected_rows_functor.cc
浏览文件 @
10758725
...
...
@@ -190,7 +190,7 @@ template struct SelectedRowsAddTensor<phi::CPUContext, double>;
template
<
typename
T
>
struct
SelectedRowsAddTo
<
phi
::
CPUContext
,
T
>
{
void
operator
()(
const
phi
::
CPUContext
&
context
,
void
operator
()(
const
phi
::
CPUContext
&
context
UNUSED
,
const
phi
::
SelectedRows
&
input1
,
const
int64_t
input2_offset
,
phi
::
SelectedRows
*
input2
)
{
...
...
paddle/phi/kernels/funcs/sequence_padding.cc
浏览文件 @
10758725
...
...
@@ -97,7 +97,7 @@ static void fast_mem_init(void* dest,
template
<
typename
T
>
class
PaddingLoDTensorFunctor
<
phi
::
CPUContext
,
T
>
{
public:
void
operator
()(
const
phi
::
CPUContext
&
context
,
void
operator
()(
const
phi
::
CPUContext
&
context
UNUSED
,
const
phi
::
DenseTensor
&
seq_tensor
,
phi
::
DenseTensor
*
pad_tensor
,
const
phi
::
DenseTensor
&
pad_value
,
...
...
@@ -157,7 +157,7 @@ class PaddingLoDTensorFunctor<phi::CPUContext, T> {
template
<
typename
T
>
class
UnpaddingLoDTensorFunctor
<
phi
::
CPUContext
,
T
>
{
public:
void
operator
()(
const
phi
::
CPUContext
&
context
,
void
operator
()(
const
phi
::
CPUContext
&
context
UNUSED
,
const
phi
::
DenseTensor
&
pad_tensor
,
phi
::
DenseTensor
*
seq_tensor
,
int
pad_seq_len
=
-
1
,
...
...
paddle/phi/kernels/funcs/sequence_padding.h
浏览文件 @
10758725
...
...
@@ -51,9 +51,9 @@ inline static size_t TotalSequenceLength(
inline
static
void
CheckDims
(
const
phi
::
DDim
&
seq_tensor_dims
,
const
phi
::
DDim
&
pad_tensor_dims
,
const
phi
::
Vector
<
size_t
>&
seq_offset
,
int64_t
padded_seq_len
,
int64_t
step_width
,
const
PadLayout
&
layout
)
{
int64_t
padded_seq_len
UNUSED
,
int64_t
step_width
UNUSED
,
const
PadLayout
&
layout
UNUSED
)
{
PADDLE_ENFORCE_EQ
(
static_cast
<
size_t
>
(
seq_tensor_dims
[
0
]),
seq_offset
.
back
(),
...
...
paddle/phi/kernels/funcs/tensor_to_string.h
浏览文件 @
10758725
...
...
@@ -31,7 +31,9 @@ static const std::vector<T> &ToVector(const std::vector<T> &vec) {
}
template
<
typename
T
>
static
std
::
vector
<
T
>
ToVector
(
const
T
*
x
,
size_t
n
,
const
phi
::
Place
&
place
)
{
static
std
::
vector
<
T
>
ToVector
(
const
T
*
x
,
size_t
n
,
const
phi
::
Place
&
place
UNUSED
)
{
#ifdef __NVCC__
if
(
place
.
GetType
()
==
phi
::
AllocationType
::
GPU
)
{
using
CopyT
=
typename
std
::
...
...
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
浏览文件 @
10758725
...
...
@@ -370,7 +370,7 @@ void FusedMatmulKernel(const Context &dev_ctx,
const
std
::
vector
<
int
>
&
fused_transpose_Y
,
const
std
::
vector
<
int
>
&
fused_reshape_Out
,
const
std
::
vector
<
int
>
&
fused_transpose_Out
,
const
std
::
string
&
mkldnn_data_type
,
const
std
::
string
&
mkldnn_data_type
UNUSED
,
const
float
scale_x
,
const
float
scale_y
,
const
float
scale_in_eltwise
,
...
...
paddle/phi/kernels/gpu/rnn_functor.h
浏览文件 @
10758725
...
...
@@ -277,7 +277,7 @@ bool IsContinuous(const Type &weight_list) {
}
template
<
typename
T
>
void
WeightToTensor
(
const
Place
&
place
,
void
WeightToTensor
(
const
Place
&
place
UNUSED
,
gpuStream_t
stream
,
const
std
::
vector
<
const
DenseTensor
*>
&
weight_list
,
DenseTensor
*
weight
)
{
...
...
paddle/phi/kernels/impl/transpose_grad_kernel_impl.h
浏览文件 @
10758725
...
...
@@ -44,7 +44,7 @@ void TransposeGradKernel(const Context& dev_ctx,
template
<
typename
T
,
typename
Context
>
void
TransLayoutGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
x
UNUSED
,
const
DenseTensor
&
out_grad
,
const
std
::
vector
<
int
>&
axis
,
DenseTensor
*
x_grad
)
{
...
...
paddle/phi/kernels/sparse/cpu/sum_grad_kernel.cc
浏览文件 @
10758725
...
...
@@ -112,7 +112,7 @@ void SumCsrGradKernel(const Context& dev_ctx,
const
SparseCsrTensor
&
x
,
const
SparseCsrTensor
&
dout
,
const
IntArray
&
axis
,
bool
keep_dim
,
bool
keep_dim
UNUSED
,
SparseCsrTensor
*
dx
)
{
EmptyLikeCsrKernel
<
T
,
Context
>
(
dev_ctx
,
x
,
dx
);
unsigned
int
n_dim
=
axis
.
size
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录