Use compat.python2x.all instead of numpy.all on generator
Otherwise, the generator evaluates to "True", because numpy.all does not
actually iterate through it.
Also add test case to check that m[0, idx_list] triggers full
advanced indexing, not "take".
正在显示
请
注册
或者
登录
后发表评论