提交 7ab1708e authored 作者: lamblin's avatar lamblin

Merge pull request #1365 from nouiz/fixes_numpy_1.7.1

correctly fix the test with numpy 1.7.1
...@@ -6398,13 +6398,17 @@ class T_long_tensor(unittest.TestCase): ...@@ -6398,13 +6398,17 @@ class T_long_tensor(unittest.TestCase):
try: try:
cst = constant([val, val]) cst = constant([val, val])
assert cst.value == val assert cst.value[0] == val
assert cst.value[1] == val
assert cst.value.size == 2
assert cst.dtype == "uint64" assert cst.dtype == "uint64"
except TypeError: except TypeError:
pass pass
try: try:
cst = constant([[val, val]]) cst = constant([[val, val]])
assert cst.value == val assert cst.value[0, 0] == val
assert cst.value[0, 1] == val
assert cst.value.size == 2
assert cst.dtype == "uint64" assert cst.dtype == "uint64"
except TypeError: except TypeError:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论