From 4f591e47c8792b8db3e84e27d2fb2b7ddfb3371e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 1 Oct 2017 18:18:09 +0000 Subject: [PATCH] Deploy to GitHub Pages: a80e0100e5b90da2046579e3e4cedcf567b78fb0 --- develop/doc/_sources/howto/dev/new_op_en.md.txt | 2 +- develop/doc/howto/dev/new_op_en.html | 2 +- develop/doc_cn/_sources/howto/dev/new_op_cn.md.txt | 2 +- develop/doc_cn/howto/dev/new_op_cn.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/develop/doc/_sources/howto/dev/new_op_en.md.txt b/develop/doc/_sources/howto/dev/new_op_en.md.txt index 57ff7caad19..1e88e1f5b4d 100644 --- a/develop/doc/_sources/howto/dev/new_op_en.md.txt +++ b/develop/doc/_sources/howto/dev/new_op_en.md.txt @@ -205,7 +205,7 @@ The definition of its corresponding backward operator, if applicable, is similar - `REGISTER_OP` registers the `ops::MulOp` class, type named `mul`, its type `ProtoMaker` is `ops::MulOpMaker`, registering `ops::MulOpGrad` as `mul_grad`. - `REGISTER_OP_WITHOUT_GRADIENT` registers an operator without gradient. - - `REGISTER_OP_CPU_KERNEL` registers `ops::MulKernel` class and specialized template types `paddle::platform::CPUPlace` and `float`, which also registers `ops::MulKernel`. + - `REGISTER_OP_CPU_KERNEL` registers `ops::MulKernel` class and specialized template types `paddle::platform::CPUPlace` and `float`, which also registers `ops::MulGradKernel`. - Registering GPU Kernel in `.cu` files diff --git a/develop/doc/howto/dev/new_op_en.html b/develop/doc/howto/dev/new_op_en.html index 51559bad019..5def40c6adf 100644 --- a/develop/doc/howto/dev/new_op_en.html +++ b/develop/doc/howto/dev/new_op_en.html @@ -359,7 +359,7 @@ Registering the Op | Ops are registered in
  • REGISTER_OP registers the ops::MulOp class, type named mul, its type ProtoMaker is ops::MulOpMaker, registering ops::MulOpGrad as mul_grad.
  • REGISTER_OP_WITHOUT_GRADIENT registers an operator without gradient.
  • -
  • REGISTER_OP_CPU_KERNEL registers ops::MulKernel class and specialized template types paddle::platform::CPUPlace and float, which also registers ops::MulKernel.
  • +
  • REGISTER_OP_CPU_KERNEL registers ops::MulKernel class and specialized template types paddle::platform::CPUPlace and float, which also registers ops::MulGradKernel.
  • diff --git a/develop/doc_cn/_sources/howto/dev/new_op_cn.md.txt b/develop/doc_cn/_sources/howto/dev/new_op_cn.md.txt index 9d3d02ffc31..c823d7e9fcd 100644 --- a/develop/doc_cn/_sources/howto/dev/new_op_cn.md.txt +++ b/develop/doc_cn/_sources/howto/dev/new_op_cn.md.txt @@ -206,7 +206,7 @@ MulOp(const std::string &type, const framework::VariableNameMap &inputs, - `REGISTER_OP` : 注册`ops::MulOp`类,类型名为`mul`,该类的`ProtoMaker`为`ops::MulOpMaker`,注册`ops::MulOpGrad`,类型名为`mul_grad`。 - `REGISTER_OP_WITHOUT_GRADIENT` : 用于注册没有反向的Op。 - - `REGISTER_OP_CPU_KERNEL` :注册`ops::MulKernel`类,并特化模板参数为`paddle::platform::CPUPlace`和`float`类型,同理,注册`ops::MulKernel`类。 + - `REGISTER_OP_CPU_KERNEL` :注册`ops::MulKernel`类,并特化模板参数为`paddle::platform::CPUPlace`和`float`类型,同理,注册`ops::MulGradKernel`类。 - 在 `.cu`文件中注册GPU Kernel。 diff --git a/develop/doc_cn/howto/dev/new_op_cn.html b/develop/doc_cn/howto/dev/new_op_cn.html index 162cf1ff7ba..1956d080dad 100644 --- a/develop/doc_cn/howto/dev/new_op_cn.html +++ b/develop/doc_cn/howto/dev/new_op_cn.html @@ -373,7 +373,7 @@ Kernel实现 | CPU、GPU共享Kernel实现在
  • REGISTER_OP : 注册ops::MulOp类,类型名为mul,该类的ProtoMakerops::MulOpMaker,注册ops::MulOpGrad,类型名为mul_grad
  • REGISTER_OP_WITHOUT_GRADIENT : 用于注册没有反向的Op。
  • -
  • REGISTER_OP_CPU_KERNEL :注册ops::MulKernel类,并特化模板参数为paddle::platform::CPUPlacefloat类型,同理,注册ops::MulKernel类。
  • +
  • REGISTER_OP_CPU_KERNEL :注册ops::MulKernel类,并特化模板参数为paddle::platform::CPUPlacefloat类型,同理,注册ops::MulGradKernel类。
  • -- GitLab