提交 ce63abb2 authored 作者: wonghang's avatar wonghang

clean up my own testing code

上级 a734b04c
...@@ -573,7 +573,6 @@ def test_gputri(): ...@@ -573,7 +573,6 @@ def test_gputri():
out, out,
mode=mode_with_gpu) mode=mode_with_gpu)
result = np.asarray(f(N, M, k)) - np.array(1).astype(dtype) result = np.asarray(f(N, M, k)) - np.array(1).astype(dtype)
print(result)
assert np.allclose(result, np.tri(N, M_, k, dtype=dtype)) assert np.allclose(result, np.tri(N, M_, k, dtype=dtype))
assert result.dtype == np.dtype(dtype) assert result.dtype == np.dtype(dtype)
assert any([isinstance(node.op, GpuTri) assert any([isinstance(node.op, GpuTri)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论