Yibing Liu

Results comments of Yibing Liu

https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/fluid/operators PaddlePaddle定义的op,都在这个目录下。一般来讲,每个op的实现包括三个文件:接口定义文件*.cc, cpu计算逻辑实现*.h,和gpu计算逻辑实现*.cu 例如这是prelu的cc文件 https://github.com/PaddlePaddle/Paddle/blob/3628d894f2c5077832fa78f76caa75f979b42a08/paddle/fluid/operators/prelu_op.cc

有个办法是可以用多线程/多进程读取,可以参考这里 https://github.com/PaddlePaddle/Paddle/blob/4cc9809caeb660919ddcf31af300f5702a5d9e22/python/paddle/reader/decorator.py#L360

https://github.com/PaddlePaddle/Paddle/blob/566a3259397464a605d792965ff625a39f65140d/python/paddle/reader/tests/decorator_test.py#L196 用法可以参考这里

已加了一个内部需求,然而短时间内不一定有排期

https://github.com/yeyupiaoling/PaddlePaddle-MTCNN/blob/ed9f29ecff2e8f3333f742ba8117ef567aa1d966/train/model.py#L56 将use_cudnn设置成False试试?

@yeyupiaoling 看来不是这个问题

这得实际跑一下才能知道了,直接看不易发现问题

https://github.com/PaddlePaddle/LARK/blob/1b54d1444bfde000efa3e71ddf04396c89fd7186/ERNIE/train.py#L198 paddle的inference/test program的声明方式已经考虑到了这个问题,`for_test=True` 会将dropout这种区分train/test的op的执行模式改成test,所以config保持不变即可。

https://github.com/PaddlePaddle/Paddle/blob/16922e00937525005829caef87993ed50ad071de/python/paddle/fluid/layers/nn.py#L1366-L1381 另即便是预测,也不能随意改drop_prob,可能导致错误的结果,请参考`downgrade_in_infer`这种dropout模式