gather

    1. x = fluid.layers.data(name='x', shape=[-1, 5], dtype='float32')
    2. output = fluid.layers.gather(x, index)