From 8a7c309d5f74c668e857fdcc8da223f5768fc521 Mon Sep 17 00:00:00 2001 From: sweetsky0901 Date: Fri, 22 Dec 2017 15:46:18 +0800 Subject: [PATCH] modify for update from trunk --- paddle/operators/norm_op.cc | 2 +- python/paddle/v2/fluid/tests/test_norm_op.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/operators/norm_op.cc b/paddle/operators/norm_op.cc index d23805da8..990a1504e 100644 --- a/paddle/operators/norm_op.cc +++ b/paddle/operators/norm_op.cc @@ -18,7 +18,7 @@ namespace operators { class NormOpMaker : public framework::OpProtoAndCheckerMaker { public: - NormOpMaker(framework::OpProto* proto, framework::OpAttrChecker* op_checker) + NormOpMaker(OpProto* proto, OpAttrChecker* op_checker) : OpProtoAndCheckerMaker(proto, op_checker) { AddInput( "X", diff --git a/python/paddle/v2/fluid/tests/test_norm_op.py b/python/paddle/v2/fluid/tests/test_norm_op.py index 23e6841b9..7d5632048 100644 --- a/python/paddle/v2/fluid/tests/test_norm_op.py +++ b/python/paddle/v2/fluid/tests/test_norm_op.py @@ -49,7 +49,7 @@ class TestNormOp(OpTest): self.check_grad(['X'], 'Out') def init_test_case(self): - self.shape = [1, 3, 2, 2] + self.shape = [2, 3, 2, 2] self.epsilon = 1e-6 -- GitLab