gather_nd

    示例:

    • 参数:

    返回类型:Variable

    1. x = fluid.layers.data(name='x', shape=[3, 4, 5], dtype='float32')
    2. index = fluid.layers.data(name='index', shape=[2, 2], dtype='int32')
    3. output = fluid.layers.gather_nd(x, index)