From 9b4a9da9f293d7decca3dbedf47ead19914e48ff Mon Sep 17 00:00:00 2001 From: qijun Date: Tue, 22 Aug 2017 08:07:35 +0000 Subject: [PATCH] fix code style --- paddle/operators/gaussian_random_op.cc | 3 ++- paddle/operators/gaussian_random_op.cu | 1 + paddle/operators/uniform_random_op.cc | 3 ++- paddle/operators/uniform_random_op.cu | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/paddle/operators/gaussian_random_op.cc b/paddle/operators/gaussian_random_op.cc index dcd2237459d..5755de70cd6 100644 --- a/paddle/operators/gaussian_random_op.cc +++ b/paddle/operators/gaussian_random_op.cc @@ -80,4 +80,5 @@ Use to initialize tensor with gaussian random generator. namespace ops = paddle::operators; REGISTER_OP_WITHOUT_GRADIENT(gaussian_random, ops::GaussianRandomOp, ops::GaussianRandomOpMaker); -REGISTER_OP_CPU_KERNEL(gaussian_random, ops::CPUGaussianRandomKernel); \ No newline at end of file +REGISTER_OP_CPU_KERNEL(gaussian_random, ops::CPUGaussianRandomKernel); + diff --git a/paddle/operators/gaussian_random_op.cu b/paddle/operators/gaussian_random_op.cu index 018a4bfcb26..3fe76ee7e85 100644 --- a/paddle/operators/gaussian_random_op.cu +++ b/paddle/operators/gaussian_random_op.cu @@ -63,3 +63,4 @@ class GPUGaussianRandomKernel : public framework::OpKernel { REGISTER_OP_GPU_KERNEL(gaussian_random, paddle::operators::GPUGaussianRandomKernel); + diff --git a/paddle/operators/uniform_random_op.cc b/paddle/operators/uniform_random_op.cc index 876b3ef5575..c2e2d7ba4c1 100644 --- a/paddle/operators/uniform_random_op.cc +++ b/paddle/operators/uniform_random_op.cc @@ -81,4 +81,5 @@ Used to initialize tensor with uniform random generator. REGISTER_OP_WITHOUT_GRADIENT(uniform_random, paddle::operators::UniformRandomOp, paddle::operators::UniformRandomOpMaker); REGISTER_OP_CPU_KERNEL(uniform_random, - paddle::operators::CPUUniformRandomKernel); \ No newline at end of file + paddle::operators::CPUUniformRandomKernel); + diff --git a/paddle/operators/uniform_random_op.cu b/paddle/operators/uniform_random_op.cu index 6716b7c7f20..f05ffe30688 100644 --- a/paddle/operators/uniform_random_op.cu +++ b/paddle/operators/uniform_random_op.cu @@ -65,4 +65,5 @@ class GPUUniformRandomKernel : public framework::OpKernel { } // namespace paddle REGISTER_OP_GPU_KERNEL(uniform_random, - paddle::operators::GPUUniformRandomKernel); \ No newline at end of file + paddle::operators::GPUUniformRandomKernel); + -- GitLab