提交 4d9073fc 编写于 作者: M Megvii Engine Team

test(dist): remove redundant assert for reduce_sum and gather

GitOrigin-RevId: bc7393bb63e03e31b21cd79cfa4bf90107a227b0
上级 3bd0df8e
......@@ -44,8 +44,6 @@ def test_reduce_sum(shape):
output = reduce_sum(inp)
if rank == 0:
assert np.allclose(output.numpy(), expect[rank])
else:
assert np.allclose(output.numpy(), 0)
x = np.random.random_sample(shape).astype("float32")
y = np.random.random_sample(shape).astype("float32")
......@@ -179,8 +177,6 @@ def test_gather(shape):
output = gather(inp)
if rank == 0:
assert np.allclose(output.numpy(), expect[rank])
else:
assert np.allclose(output.numpy(), 0)
x = np.random.random_sample(shape).astype("float32")
y = np.random.random_sample(shape).astype("float32")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册