gather gather(input, index, overwrite=True)[源代码] 参数: x = fluid.layers.data(name='x', shape=[-1, 5], dtype='float32')index = fluid.layers.data(name='index', shape=[-1, 1], dtype='int32')output = fluid.layers.gather(x, index)