Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
e0dd7f32
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看板
未验证
提交
e0dd7f32
编写于
7月 26, 2022
作者:
X
xiongkun
提交者:
GitHub
7月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Einsum grad complex (#44598)
* add complex for einsum grad kernel * pass the ci
上级
25d3dce1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
35 addition
and
7 deletion
+35
-7
paddle/phi/kernels/cpu/einsum_grad_kernel.cc
paddle/phi/kernels/cpu/einsum_grad_kernel.cc
+8
-2
paddle/phi/kernels/cpu/tile_kernel.cc
paddle/phi/kernels/cpu/tile_kernel.cc
+11
-3
paddle/phi/kernels/funcs/eigen/broadcast.cc
paddle/phi/kernels/funcs/eigen/broadcast.cc
+5
-0
paddle/phi/kernels/funcs/eigen/broadcast.cu
paddle/phi/kernels/funcs/eigen/broadcast.cu
+5
-0
paddle/phi/kernels/gpu/einsum_grad_kernel.cu
paddle/phi/kernels/gpu/einsum_grad_kernel.cu
+3
-1
paddle/phi/kernels/gpu/tile_kernel.cu
paddle/phi/kernels/gpu/tile_kernel.cu
+3
-1
未找到文件。
paddle/phi/kernels/cpu/einsum_grad_kernel.cc
浏览文件 @
e0dd7f32
...
...
@@ -18,5 +18,11 @@
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/einsum_grad_impl.h"
PD_REGISTER_KERNEL
(
einsum_grad
,
CPU
,
ALL_LAYOUT
,
phi
::
EinsumGradKernel
,
float
,
double
)
{}
PD_REGISTER_KERNEL
(
einsum_grad
,
CPU
,
ALL_LAYOUT
,
phi
::
EinsumGradKernel
,
float
,
double
,
phi
::
dtype
::
complex
<
float
>
,
phi
::
dtype
::
complex
<
double
>
)
{}
paddle/phi/kernels/cpu/tile_kernel.cc
浏览文件 @
e0dd7f32
...
...
@@ -18,6 +18,14 @@
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/tile_kernel_impl.h"
PD_REGISTER_KERNEL
(
tile
,
CPU
,
ALL_LAYOUT
,
phi
::
TileKernel
,
bool
,
float
,
double
,
int
,
int64_t
)
{
}
PD_REGISTER_KERNEL
(
tile
,
CPU
,
ALL_LAYOUT
,
phi
::
TileKernel
,
bool
,
float
,
double
,
int
,
int64_t
,
phi
::
dtype
::
complex
<
float
>
,
phi
::
dtype
::
complex
<
double
>
)
{}
paddle/phi/kernels/funcs/eigen/broadcast.cc
浏览文件 @
e0dd7f32
...
...
@@ -12,6 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/phi/common/bfloat16.h"
#include "paddle/phi/common/complex.h"
#include "paddle/phi/common/float16.h"
#include "paddle/phi/kernels/funcs/eigen/eigen_function.h"
...
...
@@ -75,6 +76,8 @@ struct EigenBroadcastGrad<Eigen::DefaultDevice, T, Rank> {
INSTANTIATION
(
EigenBroadcast
,
bool
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
float16
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
bfloat16
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
complex
<
float
>
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
complex
<
double
>
);
INSTANTIATION
(
EigenBroadcast
,
float
);
INSTANTIATION
(
EigenBroadcast
,
double
);
INSTANTIATION
(
EigenBroadcast
,
int
);
...
...
@@ -82,6 +85,8 @@ INSTANTIATION(EigenBroadcast, int64_t);
INSTANTIATION
(
EigenBroadcastGrad
,
bool
);
INSTANTIATION
(
EigenBroadcastGrad
,
float
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
float16
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
complex
<
float
>
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
complex
<
double
>
);
INSTANTIATION
(
EigenBroadcastGrad
,
double
);
INSTANTIATION
(
EigenBroadcastGrad
,
int
);
INSTANTIATION
(
EigenBroadcastGrad
,
int64_t
);
...
...
paddle/phi/kernels/funcs/eigen/broadcast.cu
浏览文件 @
e0dd7f32
...
...
@@ -12,6 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/phi/common/bfloat16.h"
#include "paddle/phi/common/complex.h"
#include "paddle/phi/common/float16.h"
#include "paddle/phi/kernels/funcs/eigen/eigen_function.h"
...
...
@@ -77,12 +78,16 @@ INSTANTIATION(EigenBroadcast, dtype::float16);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
bfloat16
);
INSTANTIATION
(
EigenBroadcast
,
float
);
INSTANTIATION
(
EigenBroadcast
,
double
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
complex
<
float
>
);
INSTANTIATION
(
EigenBroadcast
,
dtype
::
complex
<
double
>
);
INSTANTIATION
(
EigenBroadcast
,
int
);
INSTANTIATION
(
EigenBroadcast
,
int64_t
);
INSTANTIATION
(
EigenBroadcastGrad
,
bool
);
INSTANTIATION
(
EigenBroadcastGrad
,
float
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
float16
);
INSTANTIATION
(
EigenBroadcastGrad
,
double
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
complex
<
float
>
);
INSTANTIATION
(
EigenBroadcastGrad
,
dtype
::
complex
<
double
>
);
INSTANTIATION
(
EigenBroadcastGrad
,
int
);
INSTANTIATION
(
EigenBroadcastGrad
,
int64_t
);
template
struct
EigenBroadcastGrad
<
Eigen
::
GpuDevice
,
float
,
0
>;
...
...
paddle/phi/kernels/gpu/einsum_grad_kernel.cu
浏览文件 @
e0dd7f32
...
...
@@ -24,4 +24,6 @@ PD_REGISTER_KERNEL(einsum_grad,
float
,
double
,
phi
::
dtype
::
float16
,
phi
::
dtype
::
bfloat16
)
{}
phi
::
dtype
::
bfloat16
,
phi
::
dtype
::
complex
<
float
>
,
phi
::
dtype
::
complex
<
double
>
)
{}
paddle/phi/kernels/gpu/tile_kernel.cu
浏览文件 @
e0dd7f32
...
...
@@ -28,4 +28,6 @@ PD_REGISTER_KERNEL(tile,
int
,
int64_t
,
phi
::
dtype
::
float16
,
phi
::
dtype
::
bfloat16
)
{}
phi
::
dtype
::
bfloat16
,
phi
::
dtype
::
complex
<
float
>
,
phi
::
dtype
::
complex
<
double
>
)
{}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录