Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
92cae577
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
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看板
未验证
提交
92cae577
编写于
2月 24, 2023
作者:
Y
YuanRisheng
提交者:
GitHub
2月 24, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
supplement header file's code (#50826)
上级
bfa217e4
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
99 addition
and
11 deletion
+99
-11
paddle/phi/kernels/compare_kernel.h
paddle/phi/kernels/compare_kernel.h
+6
-6
paddle/phi/kernels/cpu/box_coder_kernel.cc
paddle/phi/kernels/cpu/box_coder_kernel.cc
+0
-0
paddle/phi/kernels/eig_grad_kernel.h
paddle/phi/kernels/eig_grad_kernel.h
+1
-1
paddle/phi/kernels/eigh_grad_kernel.h
paddle/phi/kernels/eigh_grad_kernel.h
+1
-1
paddle/phi/kernels/gather_nd_grad_kernel.h
paddle/phi/kernels/gather_nd_grad_kernel.h
+1
-1
paddle/phi/kernels/gpu/box_coder_kernel.cu
paddle/phi/kernels/gpu/box_coder_kernel.cu
+0
-0
paddle/phi/kernels/interpolate_grad_kernel.h
paddle/phi/kernels/interpolate_grad_kernel.h
+72
-0
paddle/phi/kernels/sparse/unary_grad_kernel.h
paddle/phi/kernels/sparse/unary_grad_kernel.h
+3
-0
paddle/phi/kernels/sparse/unary_kernel.h
paddle/phi/kernels/sparse/unary_kernel.h
+13
-0
paddle/phi/kernels/spectral_norm_grad_kernel.h
paddle/phi/kernels/spectral_norm_grad_kernel.h
+1
-1
paddle/phi/kernels/spectral_norm_kernel.h
paddle/phi/kernels/spectral_norm_kernel.h
+1
-1
未找到文件。
paddle/phi/kernels/compare_kernel.h
浏览文件 @
92cae577
...
...
@@ -39,12 +39,12 @@ DECALRE_COMPARE_KERNEL(Equal)
DECALRE_COMPARE_KERNEL
(
NotEqual
)
#undef DECALRE_COMPARE_KERNEL
#define DECALRE_COMPARE_ALL_KERNEL(compare_all
_kernel)
\
template <typename T, typename Context>
\
void compare_all
_kernel(const Context& ctx,
\
const DenseTensor& x,
\
const DenseTensor& y,
\
DenseTensor* out);
#define DECALRE_COMPARE_ALL_KERNEL(compare_all
)
\
template <typename T, typename Context> \
void compare_all
##Kernel(const Context& ctx,
\
const DenseTensor& x,
\
const DenseTensor& y,
\
DenseTensor* out);
DECALRE_COMPARE_ALL_KERNEL
(
EqualAll
)
#undef DECALRE_COMPARE_KERNEL
...
...
paddle/phi/kernels/cpu/box_coder.cc
→
paddle/phi/kernels/cpu/box_coder
_kernel
.cc
浏览文件 @
92cae577
文件已移动
paddle/phi/kernels/eig_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -19,7 +19,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
EigG
ar
dKernel
(
const
Context
&
dev_ctx
,
void
EigG
ra
dKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
out_w
,
const
DenseTensor
&
out_v
,
const
DenseTensor
&
dout_w
,
...
...
paddle/phi/kernels/eigh_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -19,7 +19,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
EighG
ar
dKernel
(
const
Context
&
dev_ctx
,
void
EighG
ra
dKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
out_w
,
const
DenseTensor
&
out_v
,
const
DenseTensor
&
dout_w
,
...
...
paddle/phi/kernels/gather_nd_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -19,7 +19,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Gather
GradN
dKernel
(
const
Context
&
ctx
,
void
Gather
NdGra
dKernel
(
const
Context
&
ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
index
,
const
DenseTensor
&
out_grad
,
...
...
paddle/phi/kernels/gpu/box_coder.cu
→
paddle/phi/kernels/gpu/box_coder
_kernel
.cu
浏览文件 @
92cae577
文件已移动
paddle/phi/kernels/interpolate_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -36,4 +36,76 @@ void BilinearInterpGradKernel(
int
align_mode
,
DenseTensor
*
x_grad
);
template
<
typename
T
,
typename
Context
>
void
LinearInterpGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
paddle
::
optional
<
DenseTensor
>&
out_size
,
const
paddle
::
optional
<
std
::
vector
<
const
DenseTensor
*>>&
size_tensor
,
const
paddle
::
optional
<
DenseTensor
>&
scale_tensor
,
const
DenseTensor
&
out_grad
,
const
std
::
string
&
data_layout
,
int
out_d
,
int
out_h
,
int
out_w
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
string
&
interp_method
,
bool
align_corners
,
int
align_mode
,
DenseTensor
*
x_grad
);
template
<
typename
T
,
typename
Context
>
void
TrilinearInterpGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
paddle
::
optional
<
DenseTensor
>&
out_size
,
const
paddle
::
optional
<
std
::
vector
<
const
DenseTensor
*>>&
size_tensor
,
const
paddle
::
optional
<
DenseTensor
>&
scale_tensor
,
const
DenseTensor
&
out_grad
,
const
std
::
string
&
data_layout
,
int
out_d
,
int
out_h
,
int
out_w
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
string
&
interp_method
,
bool
align_corners
,
int
align_mode
,
DenseTensor
*
x_grad
);
template
<
typename
T
,
typename
Context
>
void
NearestInterpGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
paddle
::
optional
<
DenseTensor
>&
out_size
,
const
paddle
::
optional
<
std
::
vector
<
const
DenseTensor
*>>&
size_tensor
,
const
paddle
::
optional
<
DenseTensor
>&
scale_tensor
,
const
DenseTensor
&
out_grad
,
const
std
::
string
&
data_layout
,
int
out_d
,
int
out_h
,
int
out_w
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
string
&
interp_method
,
bool
align_corners
,
int
align_mode
,
DenseTensor
*
x_grad
);
template
<
typename
T
,
typename
Context
>
void
BicubicInterpGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
paddle
::
optional
<
DenseTensor
>&
out_size
,
const
paddle
::
optional
<
std
::
vector
<
const
DenseTensor
*>>&
size_tensor
,
const
paddle
::
optional
<
DenseTensor
>&
scale_tensor
,
const
DenseTensor
&
out_grad
,
const
std
::
string
&
data_layout
,
int
out_d
,
int
out_h
,
int
out_w
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
string
&
interp_method
,
bool
align_corners
,
int
align_mode
,
DenseTensor
*
x_grad
);
}
// namespace phi
paddle/phi/kernels/sparse/unary_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -61,7 +61,10 @@ DECLARE_SPARSE_UNARY_GRAD_KERNEL(Square)
DECLARE_SPARSE_UNARY_GRAD_KERNEL
(
Sqrt
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL
(
Log1p
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL
(
Abs
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL
(
Expm1
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL_WITH_ONE_ATTR
(
Pow
,
factor
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL_WITH_ONE_ATTR
(
LeakyRelu
,
alpha
)
DECLARE_SPARSE_UNARY_GRAD_KERNEL_WITH_ONE_ATTR
(
Relu6
,
threshold
)
template
<
typename
T
,
typename
Context
>
void
CastCooGradKernel
(
const
Context
&
dev_ctx
,
...
...
paddle/phi/kernels/sparse/unary_kernel.h
浏览文件 @
92cae577
...
...
@@ -57,7 +57,20 @@ DECLARE_SPARSE_UNARY_KERNEL(Square)
DECLARE_SPARSE_UNARY_KERNEL
(
Sqrt
)
DECLARE_SPARSE_UNARY_KERNEL
(
Log1p
)
DECLARE_SPARSE_UNARY_KERNEL
(
Abs
)
DECLARE_SPARSE_UNARY_KERNEL
(
Expm1
)
DECLARE_SPARSE_UNARY_KERNEL_WITH_ONE_ATTR
(
Pow
,
factor
)
DECLARE_SPARSE_UNARY_KERNEL_WITH_ONE_ATTR
(
Relu6Raw
,
threshold
)
DECLARE_SPARSE_UNARY_KERNEL_WITH_ONE_ATTR
(
LeakyRelu
,
alpha
)
template
<
typename
T
,
typename
Context
>
void
Relu6CooKernel
(
const
Context
&
dev_ctx
,
const
SparseCooTensor
&
x
,
SparseCooTensor
*
out
);
template
<
typename
T
,
typename
Context
>
void
Relu6CsrKernel
(
const
Context
&
dev_ctx
,
const
SparseCsrTensor
&
x
,
SparseCsrTensor
*
out
);
template
<
typename
T
,
typename
Context
>
void
ScaleCooKernel
(
const
Context
&
dev_ctx
,
...
...
paddle/phi/kernels/spectral_norm_grad_kernel.h
浏览文件 @
92cae577
...
...
@@ -16,7 +16,7 @@ limitations under the License. */
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Spectr
um
NormGradKernel
(
const
Context
&
dev_ctx
,
void
Spectr
al
NormGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
weight
,
const
DenseTensor
&
u
,
const
DenseTensor
&
v
,
...
...
paddle/phi/kernels/spectral_norm_kernel.h
浏览文件 @
92cae577
...
...
@@ -16,7 +16,7 @@ limitations under the License. */
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Spectr
um
NormKernel
(
const
Context
&
dev_ctx
,
void
Spectr
al
NormKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
weight
,
const
DenseTensor
&
u
,
const
DenseTensor
&
v
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录