未验证 提交 a98c69b6 编写于 作者: Z Zhong Hui 提交者: GitHub

fix dygraph gather api

fix dygraph gather api 
上级 e1e666a0
......@@ -8311,7 +8311,7 @@ def gather(input, index, overwrite=True):
output = fluid.layers.gather(x, index)
"""
if in_dygraph_mode():
return core.ops.gather(input, index, None)
return core.ops.gather(input, index, None, 'overwrite', overwrite)
check_variable_and_dtype(
input, 'x',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册