Yibing Liu

Results comments of Yibing Liu

``` Enforce failed. Expected allocating available:996212480. Insufficient GPU memory to allocation. at [/paddle/paddle/fluid/platform/gpu_info.cc:262] ``` 这是爆显存了,参数过大或者显卡被占用导致的

(1)预测时多线程之间会相互影响,所以要clone;(2)多进程之间是独立的,这么用应该没有问题

经内部沟通,是save inference model的时候feed target names给错了

https://github.com/PaddlePaddle/LARK/blob/1b54d1444bfde000efa3e71ddf04396c89fd7186/BERT/predict_classifier.py#L113 把ParallelExecutor换成Executor可以解决这个问题

改成这样试下 ``` results = predict_exe.run(fetch_list=[probs.name, labels.name, src_ids.name], program=predict_prog) ```

后面这种跑法是错误的 https://github.com/PaddlePaddle/Paddle/blob/1c6d0646276dc9e694c8dab0a3d5284670e358e7/python/paddle/fluid/executor.py#L539 可以参考executor的文档

gather op在实现的时候 应该是没有考虑有重复index的问题,这个需要修一下

Fixed by https://github.com/PaddlePaddle/Paddle/pull/17984