提交 b661fe1d 编写于 作者: D dzhwinter

"fix ci"

上级 0412f5e0
...@@ -362,9 +362,6 @@ class OpTest(unittest.TestCase): ...@@ -362,9 +362,6 @@ class OpTest(unittest.TestCase):
for a, b, name in itertools.izip(numeric_grads, analytic_grads, names): for a, b, name in itertools.izip(numeric_grads, analytic_grads, names):
abs_a = np.abs(a) abs_a = np.abs(a)
abs_a[abs_a < 1e-3] = 1 abs_a[abs_a < 1e-3] = 1
print("actual", a)
print("*****")
print("expected", b)
diff_mat = np.abs(a - b) / abs_a diff_mat = np.abs(a - b) / abs_a
max_diff = np.max(diff_mat) max_diff = np.max(diff_mat)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册