tf.gather(params,indices,axis=0 ) 从params的axis维根据indices的参数值获取切片 如上图所示,params一共6个维度,indices为[2,1,3,4]被取了出来。