reader部分报错,cudaMemcpy failed
【问题描述】 原网络正常运行,在此之上添加如下代码(只修改网络内部结构,输入输出接口不变),reader部分却报错,请问可能什么原因
【添加代码】

【报错信息】 提示 cudaMemcpy failed
这个任务是在多卡上吗?看起来像是多卡数据拷贝的问题
已解决。用dynamic_gru op替换lstm op可以运行,需要先把输入input通过sequence_unpad转换成序列输入,代码如下:

训练到第3个epoch,sequence_unpad op出错,错误信息如下: paddle.fluid.core.EnforceNotMet: Invoke operator sequence_unpad error. C++ Callstacks: Enforce failed. Expected numel() * SizeOfType(type()) <= memory_size(), but received numel() * SizeOfType(type()):71860247984660480 > memory_size():393216. Tensor's dims_ is out of bound. Call Tensor::mutable_data first to re-allocate memory. or maybe the required data-type mismatches the data already stored. at [/paddle/paddle/fluid/framework/tensor.cc:28]
补充paddle堆栈信息:

这个问题和该issue没有关联,麻烦重新提一个issue,便于问题记录和其他遇到该问题的开发者检索,谢谢
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。