提交 9b4a9da9 编写于 作者: Q qijun

fix code style

上级 ce723af0
...@@ -80,4 +80,5 @@ Use to initialize tensor with gaussian random generator. ...@@ -80,4 +80,5 @@ Use to initialize tensor with gaussian random generator.
namespace ops = paddle::operators; namespace ops = paddle::operators;
REGISTER_OP_WITHOUT_GRADIENT(gaussian_random, ops::GaussianRandomOp, REGISTER_OP_WITHOUT_GRADIENT(gaussian_random, ops::GaussianRandomOp,
ops::GaussianRandomOpMaker); ops::GaussianRandomOpMaker);
REGISTER_OP_CPU_KERNEL(gaussian_random, ops::CPUGaussianRandomKernel<float>); REGISTER_OP_CPU_KERNEL(gaussian_random, ops::CPUGaussianRandomKernel<float>);
\ No newline at end of file
...@@ -63,3 +63,4 @@ class GPUGaussianRandomKernel : public framework::OpKernel { ...@@ -63,3 +63,4 @@ class GPUGaussianRandomKernel : public framework::OpKernel {
REGISTER_OP_GPU_KERNEL(gaussian_random, REGISTER_OP_GPU_KERNEL(gaussian_random,
paddle::operators::GPUGaussianRandomKernel<float>); paddle::operators::GPUGaussianRandomKernel<float>);
...@@ -81,4 +81,5 @@ Used to initialize tensor with uniform random generator. ...@@ -81,4 +81,5 @@ Used to initialize tensor with uniform random generator.
REGISTER_OP_WITHOUT_GRADIENT(uniform_random, paddle::operators::UniformRandomOp, REGISTER_OP_WITHOUT_GRADIENT(uniform_random, paddle::operators::UniformRandomOp,
paddle::operators::UniformRandomOpMaker); paddle::operators::UniformRandomOpMaker);
REGISTER_OP_CPU_KERNEL(uniform_random, REGISTER_OP_CPU_KERNEL(uniform_random,
paddle::operators::CPUUniformRandomKernel<float>); paddle::operators::CPUUniformRandomKernel<float>);
\ No newline at end of file
...@@ -65,4 +65,5 @@ class GPUUniformRandomKernel : public framework::OpKernel { ...@@ -65,4 +65,5 @@ class GPUUniformRandomKernel : public framework::OpKernel {
} // namespace paddle } // namespace paddle
REGISTER_OP_GPU_KERNEL(uniform_random, REGISTER_OP_GPU_KERNEL(uniform_random,
paddle::operators::GPUUniformRandomKernel<float>); paddle::operators::GPUUniformRandomKernel<float>);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册