Yibing Liu
Yibing Liu
The convergence of VGG16 in Fluid has been well validated (#6947), and one thing remains: the training speed needs to be improved (#6918).
About the memory allocation: https://github.com/PaddlePaddle/Paddle/issues/6968
This problem has been fixed. Please wait the pull request from @luotao1 for a while
你可以暂时将文件后缀改成 ```*.cu```来解决这个问题
@LiuJiaqiang89 应该和``` trainer_count > 1```没关系,会有加锁保证参数更新是线程安全的。可以完整的贴下你的报错吗?
@LiuJiaqiang89 ```getNonStaticParameters()```这里的逻辑应该没有问题,在cpu模式中多个线程之间的参数是共享的,所以只要一个线程获取参数并返回就可以了。这一块在平时用的时候没有出问题,建议你看下内部框架是否有问题。
@HljWafer 请问能确认现在的数据没有问题了吗?另外检查一下数据和连接的维度,这种也比较容易出问题。
@aiDLcnnLSTM 两个模型放在一起infer可能会有冲突,因为它们都会初始化一些不可见的全局变量。解决办法是在一个模型infer完成之后清空这些上下文,再执行另一个模型的infer,请参考 https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/v2/tests/test_rnn_layer.py#L35
这个是可以做的,先用```addto``` layer将两个向量求和,再用```scaling``` layer 将求和结果乘以0.5就可以实现求平均值,这两个layer在文档中都能找到:http://paddlepaddle.org/docs/develop/documentation/zh/api/v2/config/layer.html
```weight```是scaling的因子,这里设置成0.5就可以了,但是要注意输入是layer类型的,可能需要转化下