Follow comments.

update-doc-pybind
hedaoyuan 8 years ago
parent 7bf1e76fdc
commit 09c65b6d4f

@ -12,7 +12,7 @@
See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/operators/gemm_conv_op.h"
#include "paddle/operators/gemm_conv2d_op.h"
namespace paddle {
namespace operators {
@ -116,7 +116,7 @@ namespace ops = paddle::operators;
REGISTER_OP(conv2d, ops::Conv2DOp, ops::Conv2DOpMaker, conv2d_grad,
ops::Conv2DOpGrad);
REGISTER_OP_CPU_KERNEL(conv2d,
ops::GemmConvKernel<paddle::platform::CPUPlace, float>);
REGISTER_OP_CPU_KERNEL(
conv2d_grad, ops::GemmConvGradKernel<paddle::platform::CPUPlace, float>);
conv2d, ops::GemmConv2dKernel<paddle::platform::CPUPlace, float>);
REGISTER_OP_CPU_KERNEL(
conv2d_grad, ops::GemmConvGrad2dKernel<paddle::platform::CPUPlace, float>);

@ -12,11 +12,11 @@
See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/operators/gemm_conv_op.h"
#include "paddle/operators/gemm_conv2d_op.h"
namespace ops = paddle::operators;
REGISTER_OP_GPU_KERNEL(conv2d,
ops::GemmConvKernel<paddle::platform::GPUPlace, float>);
REGISTER_OP_GPU_KERNEL(
conv2d_grad, ops::GemmConvGradKernel<paddle::platform::GPUPlace, float>);
conv2d, ops::GemmConv2dKernel<paddle::platform::GPUPlace, float>);
REGISTER_OP_GPU_KERNEL(
conv2d_grad, ops::GemmConvGrad2dKernel<paddle::platform::GPUPlace, float>);

@ -25,7 +25,7 @@ namespace operators {
using Tensor = framework::Tensor;
template <typename Place, typename T>
class GemmConvKernel : public framework::OpKernel {
class GemmConv2dKernel : public framework::OpKernel {
public:
void Compute(const framework::ExecutionContext& context) const override {
const Tensor* input = context.Input<Tensor>("Input");
@ -101,7 +101,7 @@ class GemmConvKernel : public framework::OpKernel {
};
template <typename Place, typename T>
class GemmConvGradKernel : public framework::OpKernel {
class GemmConvGrad2dKernel : public framework::OpKernel {
public:
void Compute(const framework::ExecutionContext& context) const override {
const Tensor* input = context.Input<Tensor>("Input");
Loading…
Cancel
Save