提交 a3ec6521 编写于 作者: Q qijun

fix bug

上级 d6c3794c
...@@ -89,7 +89,6 @@ def get_numeric_gradient(scope, ...@@ -89,7 +89,6 @@ def get_numeric_gradient(scope,
delta=0.005, delta=0.005,
in_place=False): in_place=False):
print "before set input"
set_input(scope, op, inputs, core.CPUPlace()) set_input(scope, op, inputs, core.CPUPlace())
op.infer_shape(scope) op.infer_shape(scope)
......
...@@ -12,7 +12,7 @@ def stable_softmax(x): ...@@ -12,7 +12,7 @@ def stable_softmax(x):
class TestSoftmaxOp(OpTest): class TestSoftmaxOp(OpTest):
def setUp(self): def setUp(self):
self.type = "softmax" self.op_type = "softmax"
self.inputs = { self.inputs = {
'X': np.random.uniform(0.1, 1, [10, 10]).astype("float32") 'X': np.random.uniform(0.1, 1, [10, 10]).astype("float32")
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册