|
|
@ -8311,7 +8311,7 @@ def gather(input, index, overwrite=True):
|
|
|
|
output = fluid.layers.gather(x, index)
|
|
|
|
output = fluid.layers.gather(x, index)
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
if in_dygraph_mode():
|
|
|
|
if in_dygraph_mode():
|
|
|
|
return core.ops.gather(input, index, None)
|
|
|
|
return core.ops.gather(input, index, None, 'overwrite', overwrite)
|
|
|
|
|
|
|
|
|
|
|
|
check_variable_and_dtype(
|
|
|
|
check_variable_and_dtype(
|
|
|
|
input, 'x',
|
|
|
|
input, 'x',
|
|
|
|