pool_op.cu.cc 1.4 KB
Newer Older
C
chengduoZH 已提交
1
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
2

C
chengduoZH 已提交
3 4 5
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
6

C
chengduoZH 已提交
7 8 9 10 11 12 13
    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. */
14 15 16 17 18 19

#include "paddle/operators/pool_op.h"

namespace ops = paddle::operators;

REGISTER_OP_GPU_KERNEL(pool2d,
C
chengduoZH 已提交
20 21
                       ops::PoolKernel<paddle::platform::GPUPlace, float>,
                       ops::PoolKernel<paddle::platform::GPUPlace, double>);
22
REGISTER_OP_GPU_KERNEL(pool2d_grad,
C
chengduoZH 已提交
23 24
                       ops::PoolGradKernel<paddle::platform::GPUPlace, float>,
                       ops::PoolGradKernel<paddle::platform::GPUPlace, double>);
25 26

REGISTER_OP_GPU_KERNEL(pool3d,
C
chengduoZH 已提交
27 28
                       ops::PoolKernel<paddle::platform::GPUPlace, float>,
                       ops::PoolKernel<paddle::platform::GPUPlace, double>);
29
REGISTER_OP_GPU_KERNEL(pool3d_grad,
C
chengduoZH 已提交
30 31
                       ops::PoolGradKernel<paddle::platform::GPUPlace, float>,
                       ops::PoolGradKernel<paddle::platform::GPUPlace, double>);