Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
f449180b
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f449180b
编写于
2月 28, 2018
作者:
Q
qingqing01
提交者:
GitHub
2月 28, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Register more data type for reshape operator. (#8617)
上级
a67cebaf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
10 deletion
+19
-10
paddle/fluid/operators/reshape_op.cc
paddle/fluid/operators/reshape_op.cc
+9
-4
paddle/fluid/operators/reshape_op.cu
paddle/fluid/operators/reshape_op.cu
+10
-6
未找到文件。
paddle/fluid/operators/reshape_op.cc
浏览文件 @
f449180b
...
@@ -121,10 +121,15 @@ class ReshapeGradOp : public framework::OperatorWithKernel {
...
@@ -121,10 +121,15 @@ class ReshapeGradOp : public framework::OperatorWithKernel {
}
// namespace operators
}
// namespace operators
}
// namespace paddle
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
ops
=
paddle
::
operators
;
using
CPU
=
paddle
::
platform
::
CPUDeviceContext
;
REGISTER_OP
(
reshape
,
ops
::
ReshapeOp
,
ops
::
ReshapeOpMaker
,
reshape_grad
,
REGISTER_OP
(
reshape
,
ops
::
ReshapeOp
,
ops
::
ReshapeOpMaker
,
reshape_grad
,
ops
::
ReshapeGradOp
);
ops
::
ReshapeGradOp
);
REGISTER_OP_CPU_KERNEL
(
reshape
,
REGISTER_OP_CPU_KERNEL
(
reshape
,
ops
::
ReshapeKernel
<
CPU
,
float
>
,
ops
::
ReshapeKernel
<
paddle
::
platform
::
CPUPlace
,
float
>
);
ops
::
ReshapeKernel
<
CPU
,
double
>
,
REGISTER_OP_CPU_KERNEL
(
ops
::
ReshapeKernel
<
CPU
,
int
>
,
reshape_grad
,
ops
::
ReshapeGradKernel
<
paddle
::
platform
::
CPUPlace
,
float
>
);
ops
::
ReshapeKernel
<
CPU
,
int64_t
>
);
REGISTER_OP_CPU_KERNEL
(
reshape_grad
,
ops
::
ReshapeGradKernel
<
CPU
,
float
>
,
ops
::
ReshapeGradKernel
<
CPU
,
double
>
,
ops
::
ReshapeGradKernel
<
CPU
,
int
>
,
ops
::
ReshapeGradKernel
<
CPU
,
int64_t
>
);
paddle/fluid/operators/reshape_op.cu
浏览文件 @
f449180b
...
@@ -13,10 +13,14 @@ See the License for the specific language governing permissions and
...
@@ -13,10 +13,14 @@ See the License for the specific language governing permissions and
limitations under the License. */
limitations under the License. */
#include "paddle/fluid/operators/reshape_op.h"
#include "paddle/fluid/operators/reshape_op.h"
using
CUDA
=
paddle
::
platform
::
CUDADeviceContext
;
REGISTER_OP_CUDA_KERNEL
(
REGISTER_OP_CUDA_KERNEL
(
reshape
,
paddle
::
operators
::
ReshapeKernel
<
CUDA
,
float
>
,
reshape
,
paddle
::
operators
::
ReshapeKernel
<
CUDA
,
double
>
,
paddle
::
operators
::
ReshapeKernel
<
paddle
::
platform
::
CUDAPlace
,
float
>
);
paddle
::
operators
::
ReshapeKernel
<
CUDA
,
int
>
,
REGISTER_OP_CUDA_KERNEL
(
paddle
::
operators
::
ReshapeKernel
<
CUDA
,
int64_t
>
);
reshape_grad
,
REGISTER_OP_CUDA_KERNEL
(
reshape_grad
,
paddle
::
operators
::
ReshapeGradKernel
<
paddle
::
platform
::
CUDAPlace
,
float
>
);
paddle
::
operators
::
ReshapeGradKernel
<
CUDA
,
float
>
,
paddle
::
operators
::
ReshapeGradKernel
<
CUDA
,
double
>
,
paddle
::
operators
::
ReshapeGradKernel
<
CUDA
,
int
>
,
paddle
::
operators
::
ReshapeGradKernel
<
CUDA
,
int64_t
>
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录