fix dygraph gather api

fix dygraph gather api
revert-28284-dev/pybind_version
Zhong Hui 4 years ago committed by GitHub
parent e1e666a05f
commit a98c69b6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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',

Loading…
Cancel
Save