提交 a44767b1 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix bug in advanced indexing with constants

Closes gh-607
上级 f948f053
......@@ -5753,7 +5753,7 @@ class AdvancedSubtensor(Op):
if ind1.ndim == 1 and ind2.ndim == 1:
return gof.Apply(self,
(x,) + inputs,
(x, ind1, ind2),
[tensor(dtype=x.type.dtype,
broadcastable=[False])])
raise NotImplementedError(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论