提交 93e8180b authored 作者: Rodrigo Luger's avatar Rodrigo Luger 提交者: Thomas Wiecki

Eliminate FutureWarning (#6708)

上级 bb2daf97
......@@ -2194,7 +2194,7 @@ class BaseAdvancedSubtensor(Op):
def perform(self, node, inputs, out_):
out, = out_
check_advanced_indexing_dimensions(inputs[0], inputs[1:])
rval = inputs[0].__getitem__(inputs[1:])
rval = inputs[0].__getitem__(tuple(inputs[1:]))
# When there are no arrays, we are not actually doing advanced
# indexing, so __getitem__ will not return a copy.
# Since no view_map is set, we need to copy the returned value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论