From a3ec652110291c539eca9234561f2ca433fbe2a1 Mon Sep 17 00:00:00 2001 From: qijun Date: Mon, 11 Sep 2017 21:39:43 +0800 Subject: [PATCH] fix bug --- python/paddle/v2/framework/tests/op_test.py | 1 - python/paddle/v2/framework/tests/test_softmax_op.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/v2/framework/tests/op_test.py b/python/paddle/v2/framework/tests/op_test.py index ddeb2aabc..4fec4c910 100644 --- a/python/paddle/v2/framework/tests/op_test.py +++ b/python/paddle/v2/framework/tests/op_test.py @@ -89,7 +89,6 @@ def get_numeric_gradient(scope, delta=0.005, in_place=False): - print "before set input" set_input(scope, op, inputs, core.CPUPlace()) op.infer_shape(scope) diff --git a/python/paddle/v2/framework/tests/test_softmax_op.py b/python/paddle/v2/framework/tests/test_softmax_op.py index 1c5802dfd..1b948f252 100644 --- a/python/paddle/v2/framework/tests/test_softmax_op.py +++ b/python/paddle/v2/framework/tests/test_softmax_op.py @@ -12,7 +12,7 @@ def stable_softmax(x): class TestSoftmaxOp(OpTest): def setUp(self): - self.type = "softmax" + self.op_type = "softmax" self.inputs = { 'X': np.random.uniform(0.1, 1, [10, 10]).astype("float32") } -- GitLab