提交 94e09a7e authored 作者: notoraptor's avatar notoraptor

Revert "Use `utt.assert_allclose()` instead of `assert np.all` in a test."

This reverts commit 58be77e9.
上级 58be77e9
...@@ -330,7 +330,7 @@ class Test_TopK(unittest.TestCase): ...@@ -330,7 +330,7 @@ class Test_TopK(unittest.TestCase):
goal = np.argsort(xval)[idx].astype(idx_dtype) goal = np.argsort(xval)[idx].astype(idx_dtype)
# due to uniqueness, we expect indices same # due to uniqueness, we expect indices same
utt.assert_allclose(xval[np.sort(goal)], xval[np.sort(yval)]) assert np.all(xval[np.sort(yval)] == xval[np.sort(goal)])
@utt.parameterized.expand(chain( @utt.parameterized.expand(chain(
product( product(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论