提交 dd21ae6c 编写于 作者: T typhoonzero

update

上级 5361911c
......@@ -285,8 +285,9 @@ class TestSparseAdamOp(unittest.TestCase):
j = 0
while j < self.row_numel:
pos = row_id * self.row_numel + j
print (actual[pos] - np_array[pos]) / actual[pos]
self.assertLess((actual[pos] - np_array[pos]) / actual[pos], 0.00001)
print(actual[pos] - np_array[pos]) / actual[pos]
self.assertLess((actual[pos] - np_array[pos]) / actual[pos],
0.00001)
j += 1
def test_sparse_sgd(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册