yuyy0823

Results issues of yuyy0823

PaddlePaddle 0.14 GPU版本 单机2个GPU跑二分类,特征7k维,batch_size=1024,网络结构是一个2层的CNN,参数维数比较低。 使用profiler分析发现耗时应该主要是数据从cpu到gpu拷贝比较慢,以下分别是按照cputime和gputime逆序排列的结果。看起来paddle内部的操作耗时都不多,主要是io耗时高,请问该如何优化这一部分? method gputime cputime memcpyHtoD 1.824 19204.238 memcpyHtoD 3.808 12522.656 memcpyHtoD 1.728 10132.713 memcpyHtoD 1.408 9395.499 memcpyHtoD 1.440 7006.348 memcpyHtoD 1.632 6175.062 memcpyHtoD 5.824 5356.806 memcpyHtoD...

c++调用paddlepaddle进行预测时,qps设为1是正常的,超过1就会出core。 c++调用的paddlepaddle版本信息为: ![image](https://user-images.githubusercontent.com/28800753/54730442-f30e0900-4bc3-11e9-8a57-7765a8c9e3d3.png) core信息显示错误在调用paddlepaddle的run方法: ![image](https://user-images.githubusercontent.com/28800753/54730853-0de17d00-4bc6-11e9-9f0f-f0e9762b16f8.png) c++调用paddlepaddle代码如下: ![image](https://user-images.githubusercontent.com/28800753/54730716-63695a00-4bc5-11e9-9222-e8683aba9b04.png) 帮忙看看这是什么问题呢,怎么解决?

之前提出过paddlepaddle调用多线程出core的问题,后来封装了多线程后问题解决(https://github.com/PaddlePaddle/Paddle/issues/16335)。 最近又出现两次core,core信息如下: ![image](https://user-images.githubusercontent.com/28800753/55299371-5110db00-5465-11e9-8625-2ec7829ece5e.png) paddlepaddle显示的core信息如下: ![image](https://user-images.githubusercontent.com/28800753/55299443-992ffd80-5465-11e9-9be3-5eac600c7929.png) 出错的代码位置如下: ![image](https://user-images.githubusercontent.com/28800753/55299481-ba90e980-5465-11e9-8fc5-3fca1e62b74d.png) 希望帮忙定位下是什么错误导致的呢?

User

你好,使用paddle fluid 0.15版本,现在想实现一个简单的lstm,使用py_reader读入数据 ![image](https://user-images.githubusercontent.com/28800753/59259591-b0147c80-8c6c-11e9-96ec-482dc3af7265.png) 在rnn中,通过fluid.layers.slice切片获得150为的向量,现在需要将这个向量转换为10*15的序列格式,10可以理解为一句话中的10个词,15是词的维度,现在这样实现运行报错,试了很多方法都不太行,求指导! ![image](https://user-images.githubusercontent.com/28800753/59259880-27e2a700-8c6d-11e9-8681-3297b081e0af.png) 报错信息如下 ![image](https://user-images.githubusercontent.com/28800753/59260167-b6efbf00-8c6d-11e9-92bc-79b56ac76513.png)

User
status/close

paddle版本 0.15 想简单测试下lstm_unit的实现,运行报错,部分代码和报错信息如下,把lstm换成mlp,其他代码都不变是可以成功运行的,所以应该是lstm_unit使用不对吗?lstm_unit是按照api写的,很简单,没做什么复制操作,求帮忙看下是什么错误啊: def lstm(input): x_t_data = input x_t = fluid.layers.fc(input=x_t_data, size=64) prev_hidden = fluid.layers.fc(input=x_t_data, size=64) prev_cell = fluid.layers.fc(input=x_t_data, size=64) hidden_value, cell_value = fluid.layers.lstm_unit(x_t=x_t, hidden_t_prev=prev_hidden, cell_t_prev=prev_cell) pre = fluid.layers.fc(input=hidden_value, size=2,...

- 版本、环境信息:    1)PaddlePaddle版本:1.5.2gpu版    2)GPU:CUDA Version 8.0.44 CUDNN版本号    3)系统环境:CentOS release 6.3 (Final),Python2.7.3 - 训练信息    1)单机多卡    2)NVIDIA-SMI 384.81 Driver Version: 384.81 - 问题描述:训练ranknet模型,训练过程中loss出现inf,即使lr设置为1e-5,也会出现loss为inf,有时候前几个epoch出现inf,后面训练又变正常不再出现inf,有时候前几个epoch出现inf,中间几个epoch正常,没有inf,然后再过几个epoch又出现inf,感觉很奇怪,麻烦相关同学帮忙分析下原因。 使用check_nan_inf检测,日志结果如下: C++ Call stacks: Operator rank_loss output Tensor traintrainrank_loss_0.tmp_0...

用paddle实现ranknet,有一些不太懂的地方,请相关同学指教下。 1、ranknet中左右两个网络结构共享参数,是否一定要通过设置param_attr和bias_attr中的name来实现,如果不设置这两个参数的名字的话,实际训练过程中是训练了两套参数吗? 2、测试时发现,将网络中的参数通过param_attr和bias_attr设置name后(如下图),调用fluid.io.save_inference_model接口分别保存左右两个模型时,发现参数文件的md5sum是一样的,但是模型文件的md5sum值不一样,这是什么原因导致的呢? ``` def half_ranknet_2(input): """ rank_net """ def wide_layer(): """ wide layer """ out = fluid.layers.fc(input=input, size=64, name='fc0', param_attr=fluid.param_attr.ParamAttr(name="wide_w"), bias_attr=fluid.param_attr.ParamAttr(name="wide_b")) return out def deep_layer(): """ deep layer """...

paddle 版本为1.5.2 使用gpu训练,CUDA 8 尝试用paddle在自定义数据实现multi-head self attention功能,参考[https://aistudio.baidu.com/aistudio/projectDetail/122281](url)中的数据处理代码,运行发现代码先把数据全部加载到内存再开始训练,而我的训练数据很大,全加载到内存不太现实,请问有什么好的解决方法吗?或者有其他一边读数据一边训练的multi-head self attention实现代码参考吗? 找到一个类似的issue[https://github.com/PaddlePaddle/models/issues/4208](url),但是没有回复。