提交 57a53223 authored 作者: James Bergstra's avatar James Bergstra

removing overly strict type check in AdvancedSubtensor1.make_node

上级 9c8cf380
......@@ -4863,10 +4863,6 @@ class AdvancedSubtensor1(Op):
raise TypeError('index must be vector')
if x_.type.ndim == 0:
raise TypeError('cannot index into a scalar')
if x_.type.broadcastable[0]:
# the caller should have made a copy of x len(ilist) times
raise TypeError('cannot index into a broadcastable dimension')
return Apply(self, [x_, ilist_], [x_.type()])
def perform(self, node, inp, out_):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论