Yibing Liu
Yibing Liu
好的 我给NLP的同学反馈下
This is because the return of `next(THR_reader)` is a list with length 16, and each element is a tuple yield by the reader. Try these code: ``` values = next(THR_reader)...
@yeyupiaoling 没有在你的配置里面看出什么问题,这个网络相对简单,可以把初始化设置为tensorflow完全一样,然后对比一下中间结果
比如你可以只比较前向,将fc的参数都初始化为某个常数,损失函数也可以换成一样的
比较前向指的是网络forward逐层的计算结果 可用print layer https://github.com/PaddlePaddle/Paddle/blob/8965cee89f83f2d2d4d403e0908232a2810e3149/python/paddle/fluid/tests/unittests/test_print_op.py#L38 cost的计算方式是正确的
学习率,优化方法等等,都可以试试
应该是paddle环境的问题,请问本地的Fluid版本是多少?
Solved by `-DWITH_DISTRIBUTE=ON` in cmake
https://github.com/PaddlePaddle/Paddle/blob/e26f51ce74e998c4119fc2c3145aa7c1224c2170/doc/v2/faq/local/index_cn.rst#加速训练速度 请参考这里,把fc的参数更新方式设成`sparse_update=True`试试
The usage of `sequence_slice` seems fine. Maybe the error results from reading empty data in while loop, please have a try to check the boundary condition.