Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f6f59e50
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,发现更多精彩内容 >>
未验证
提交
f6f59e50
编写于
4月 20, 2021
作者:
W
wuhuanzhou
提交者:
GitHub
4月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move REGISTER_OP_CUDA_KERNEL into cpp with eigen, test=develop (#32114)
上级
c09d6453
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
96 addition
and
175 deletion
+96
-175
paddle/fluid/operators/expand_as_op.cc
paddle/fluid/operators/expand_as_op.cc
+14
-0
paddle/fluid/operators/expand_as_op.cu
paddle/fluid/operators/expand_as_op.cu
+0
-25
paddle/fluid/operators/expand_as_v2_op.cc
paddle/fluid/operators/expand_as_v2_op.cc
+15
-0
paddle/fluid/operators/expand_as_v2_op.cu
paddle/fluid/operators/expand_as_v2_op.cu
+0
-26
paddle/fluid/operators/expand_op.cc
paddle/fluid/operators/expand_op.cc
+18
-0
paddle/fluid/operators/expand_op.cu
paddle/fluid/operators/expand_op.cu
+0
-32
paddle/fluid/operators/expand_v2_op.cc
paddle/fluid/operators/expand_v2_op.cc
+18
-0
paddle/fluid/operators/expand_v2_op.cu
paddle/fluid/operators/expand_v2_op.cu
+0
-32
paddle/fluid/operators/meshgrid_op.cc
paddle/fluid/operators/meshgrid_op.cc
+14
-0
paddle/fluid/operators/meshgrid_op.cu
paddle/fluid/operators/meshgrid_op.cu
+0
-29
paddle/fluid/operators/tile_op.cc
paddle/fluid/operators/tile_op.cc
+17
-0
paddle/fluid/operators/tile_op.cu
paddle/fluid/operators/tile_op.cu
+0
-31
未找到文件。
paddle/fluid/operators/expand_as_op.cc
浏览文件 @
f6f59e50
...
...
@@ -147,3 +147,17 @@ REGISTER_OP_CPU_KERNEL(
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
float
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
expand_as
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_as_grad
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
);
#endif
paddle/fluid/operators/expand_as_op.cu
已删除
100755 → 0
浏览文件 @
c09d6453
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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/fluid/operators/expand_as_op.h"
namespace
ops
=
paddle
::
operators
;
REGISTER_OP_CUDA_KERNEL
(
expand_as
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_as_grad
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
);
paddle/fluid/operators/expand_as_v2_op.cc
浏览文件 @
f6f59e50
...
...
@@ -129,3 +129,18 @@ REGISTER_OP_CPU_KERNEL(
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
float
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
expand_as_v2
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_as_v2_grad
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
);
#endif
paddle/fluid/operators/expand_as_v2_op.cu
已删除
100644 → 0
浏览文件 @
c09d6453
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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/fluid/operators/expand_as_v2_op.h"
namespace
ops
=
paddle
::
operators
;
REGISTER_OP_CUDA_KERNEL
(
expand_as_v2
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_as_v2_grad
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandAsV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
);
paddle/fluid/operators/expand_op.cc
浏览文件 @
f6f59e50
...
...
@@ -273,3 +273,21 @@ REGISTER_OP_CPU_KERNEL(
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
expand
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_grad
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
#endif
paddle/fluid/operators/expand_op.cu
已删除
100644 → 0
浏览文件 @
c09d6453
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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/fluid/operators/expand_op.h"
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_CUDA_KERNEL
(
expand
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_grad
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
paddle/fluid/operators/expand_v2_op.cc
浏览文件 @
f6f59e50
...
...
@@ -278,3 +278,21 @@ REGISTER_OP_CPU_KERNEL(
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
expand_v2
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_v2_grad
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
#endif
paddle/fluid/operators/expand_v2_op.cu
已删除
100644 → 0
浏览文件 @
c09d6453
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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/fluid/operators/expand_v2_op.h"
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_CUDA_KERNEL
(
expand_v2
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
ExpandV2Kernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
expand_v2_grad
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
ExpandV2GradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
paddle/fluid/operators/meshgrid_op.cc
浏览文件 @
f6f59e50
...
...
@@ -157,3 +157,17 @@ REGISTER_OP_CPU_KERNEL(
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
meshgrid
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
meshgrid_grad
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
#endif
paddle/fluid/operators/meshgrid_op.cu
已删除
100644 → 0
浏览文件 @
c09d6453
// Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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/fluid/operators/meshgrid_op.h"
namespace
ops
=
paddle
::
operators
;
REGISTER_OP_CUDA_KERNEL
(
meshgrid
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
MeshgridKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
meshgrid_grad
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
MeshgridGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
paddle/fluid/operators/tile_op.cc
浏览文件 @
f6f59e50
...
...
@@ -286,3 +286,20 @@ REGISTER_OP_CPU_KERNEL(
ops
::
TileGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
double
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CPUDeviceContext
,
int64_t
>
);
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM)
REGISTER_OP_CUDA_KERNEL
(
tile
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
tile_grad
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
paddle
::
platform
::
float16
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
#endif
paddle/fluid/operators/tile_op.cu
已删除
100644 → 0
浏览文件 @
c09d6453
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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/fluid/operators/tile_op.h"
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_CUDA_KERNEL
(
tile
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
,
ops
::
TileKernel
<
paddle
::
platform
::
CUDADeviceContext
,
bool
>
);
REGISTER_OP_CUDA_KERNEL
(
tile_grad
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
float
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
double
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
plat
::
float16
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int
>
,
ops
::
TileGradKernel
<
paddle
::
platform
::
CUDADeviceContext
,
int64_t
>
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录