From af8c2cec136ce0893d4a35155f6760f05109856a Mon Sep 17 00:00:00 2001 From: chengduozh Date: Fri, 30 Nov 2018 20:09:34 +0800 Subject: [PATCH] fix operator.cmake test=develop --- .../fluid/operators/{lstm_cudnn_op.cc => cudnn_lstm_op.cc} | 6 +++--- .../operators/{lstm_cudnn_op.cu.cc => cudnn_lstm_op.cu.cc} | 6 +++--- paddle/fluid/operators/{lstm_cudnn_op.h => cudnn_lstm_op.h} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename paddle/fluid/operators/{lstm_cudnn_op.cc => cudnn_lstm_op.cc} (98%) rename paddle/fluid/operators/{lstm_cudnn_op.cu.cc => cudnn_lstm_op.cu.cc} (99%) rename paddle/fluid/operators/{lstm_cudnn_op.h => cudnn_lstm_op.h} (100%) diff --git a/paddle/fluid/operators/lstm_cudnn_op.cc b/paddle/fluid/operators/cudnn_lstm_op.cc similarity index 98% rename from paddle/fluid/operators/lstm_cudnn_op.cc rename to paddle/fluid/operators/cudnn_lstm_op.cc index c9a4a317381..86632fc9fb4 100644 --- a/paddle/fluid/operators/lstm_cudnn_op.cc +++ b/paddle/fluid/operators/cudnn_lstm_op.cc @@ -12,7 +12,7 @@ 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/lstm_cudnn_op.h" +#include "paddle/fluid/operators/cudnn_lstm_op.h" #include #ifdef PADDLE_WITH_CUDA @@ -205,12 +205,12 @@ class CudnnLSTMGradOp : public framework::OperatorWithKernel { } // namespace paddle namespace ops = paddle::operators; -REGISTER_OPERATOR(lstm_cudnn, ops::CudnnLSTMOp, ops::CudnnLSTMOpMaker, +REGISTER_OPERATOR(cudnn_lstm, ops::CudnnLSTMOp, ops::CudnnLSTMOpMaker, paddle::framework::DefaultGradOpDescMaker); REGISTER_OPERATOR(lstm_cudnn_grad, ops::CudnnLSTMGradOp); REGISTER_OP_CPU_KERNEL( - lstm_cudnn, + cudnn_lstm, ops::CudnnLSTMKernel); REGISTER_OP_CPU_KERNEL( diff --git a/paddle/fluid/operators/lstm_cudnn_op.cu.cc b/paddle/fluid/operators/cudnn_lstm_op.cu.cc similarity index 99% rename from paddle/fluid/operators/lstm_cudnn_op.cu.cc rename to paddle/fluid/operators/cudnn_lstm_op.cu.cc index 353ab175973..811975a9f3d 100644 --- a/paddle/fluid/operators/lstm_cudnn_op.cu.cc +++ b/paddle/fluid/operators/cudnn_lstm_op.cu.cc @@ -12,7 +12,7 @@ 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/lstm_cudnn_op.h" +#include "paddle/fluid/operators/cudnn_lstm_op.h" #include "paddle/fluid/platform/cudnn_helper.h" namespace paddle { @@ -487,8 +487,8 @@ class CudnnLSTMGPUGradKernel : public framework::OpKernel { namespace ops = paddle::operators; REGISTER_OP_CUDA_KERNEL( - lstm_cudnn, + cudnn_lstm, ops::CudnnLSTMGPUKernel); REGISTER_OP_CUDA_KERNEL( - lstm_cudnn_grad, + cudnn_lstm_grad, ops::CudnnLSTMGPUGradKernel); diff --git a/paddle/fluid/operators/lstm_cudnn_op.h b/paddle/fluid/operators/cudnn_lstm_op.h similarity index 100% rename from paddle/fluid/operators/lstm_cudnn_op.h rename to paddle/fluid/operators/cudnn_lstm_op.h -- GitLab