yuyy0823

Results comments of yuyy0823

用的是pyreader呢,目前的网络结构如下图 ![image](https://user-images.githubusercontent.com/28800753/49983416-959f6600-ff9d-11e8-9db2-c655f9b1a60b.png) 训练50w的数据,跑10个epoch需要大概6个小时,时间太长了 ![image](https://user-images.githubusercontent.com/28800753/49983390-6c7ed580-ff9d-11e8-8278-157ad1ba83d6.png)

现在的是单机2卡,batch_size现在是1024,增大后GPU利用率好像并没有改善,现在基本是0%。下面是profile的详细信息,应该主要还是read比较耗时。gputime和cputime是通过cuda_profiler获得的 ![profile](https://user-images.githubusercontent.com/28800753/50055697-1bcdcf00-018d-11e9-9df0-61da4c35a1a8.jpg) images / sec 这个是什么呢?,FLAGS_reader_queue_speed_test_mode=1 设置后profile的结果好像没有太大区别,下面是设置后的结果 ![profile2](https://user-images.githubusercontent.com/28800753/50055739-de1d7600-018d-11e9-9c72-cf66128022f0.jpg)

1、用python测试reader中数据读取操作的性能,不经过py_reader和模型训练相关过程时,samples / sec=1105 2、只是去掉网络训练过程,其他操作都保留时(如下图),samples / sec=300 ![image](https://user-images.githubusercontent.com/28800753/50151058-c9aabc00-02fa-11e9-881a-182dc74dbf7b.png) 3、正常训练时,samples / sec=334 测试时,机器上跑的任务很多,导致cpu占用率很高,可能影响结果,正常第三种应该比第二种吞吐量高的,但应该是数据读取上比较耗时,请问什么优化方法吗? 我的reader没做很复杂的操作 ![image](https://user-images.githubusercontent.com/28800753/50146403-99f5b700-02ee-11e9-9aaa-095454f96d94.png) 另外,想问下,我的gpu利用率基本为0,这个可能是哪里有问题呢?

那模型比较复杂,gpu利用率也很高时,也只是加快训练的速度,数据拷贝到GPU这一步还是会很慢吧,那训练时间还是很长啊

> export MKL_NUM_THREADS=1 > export OMP_NUM_THREADS=1 > 试试加下这两个环境变量 试了,还是会出core

补充一下,上次修复多线程问题后,c++调用的paddlepaddle升级为release/1.3版本了

就是按照lod_reset的api示例写的,用reshape还是不包含序列信息,运行还是有问题,现在就是想把这个150维特征变成可以传给lstm的数据格式,不知道怎么转换数据格式。

请问怎么设置y.lod=[[0, 10]]啊,现在这么写还是不对 ![image](https://user-images.githubusercontent.com/28800753/59324588-10a9c500-8d12-11e9-9ff7-ea6c423141ca.png) 应该是这条语句不对 seg_feats_new = fluid.layers.data(name='y', shape=[0, 10], lod_level=1) 能给个正确写法吗?

直接运行了下工具,也没有完整打印每个op和block的inf信息 ![image](https://user-images.githubusercontent.com/28800753/71895874-2e96b580-318d-11ea-9af9-41e9a777080d.png)

还是回归到我的问题本身来吧,日志已经显示` rank_loss output Tensor traintrainrank_loss_0.tmp_0 contains Inf` ,那么rank_loss为inf可能是什么原因造成的呢?有什么解决方法吗?