提交 fc2cd18e authored 作者: Frederic Bastien's avatar Frederic Bastien

added test with more then 2 elements following code review comment.

上级 1164dd72
...@@ -1580,7 +1580,7 @@ class T_subtensor(unittest.TestCase): ...@@ -1580,7 +1580,7 @@ class T_subtensor(unittest.TestCase):
for data, idx in [(numpy.random.rand(4), [1,0]), for data, idx in [(numpy.random.rand(4), [1,0]),
(numpy.random.rand(4,5), [2,3]), (numpy.random.rand(4,5), [2,3]),
(numpy.random.rand(4,2,3), [0,3]), (numpy.random.rand(4,2,3), [0,3]),
(numpy.random.rand(4,2,3), [3,3]), (numpy.random.rand(4,2,3), [3,3,1,1,2,2,0,0]),
]: ]:
n = shared(data) n = shared(data)
t = n[idx] t = n[idx]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论