gather

    • 参数:
    1. x = fluid.layers.data(name='x', shape=[-1, 5], dtype='float32')
    2. index = fluid.layers.data(name='index', shape=[-1, 1], dtype='int32')
    3. output = fluid.layers.gather(x, index)