提交 04120f85 authored 作者: jsalvatier's avatar jsalvatier 提交者: John Salvatier

fixed a bug that made the broadcastable values be true when they should be false

上级 a76cd786
...@@ -7255,7 +7255,7 @@ def adv_broadcastable(a, idx): ...@@ -7255,7 +7255,7 @@ def adv_broadcastable(a, idx):
if isinstance(v.type, SliceType): if isinstance(v.type, SliceType):
return slice(None,None) return slice(None,None)
return numpy.zeros( (1,)* v.ndim, int) return numpy.zeros( (2,)* v.ndim, int)
newidx = tuple(map(replace_slice, idx)) newidx = tuple(map(replace_slice, idx))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论