正文caffe报错:cudnn.hpp:86] Check failed: status == CUDNN_STATUS_SUCCESS (3 vs. 0) CUDNN_STATUS_BAD_PARAM 原因IP云V管理员/2022-12-01/0 阅读 12/01小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 在实际项目中出现的该问题,起初以为是cudnn版本的问题,后来才定位到在网络进行reshape操作的时候 input_layer->Reshape({(int)imgin.size(), input_layer->shape(), input_layer->shape(), input_layer->shape()}); 如上所示,第一个参数是输入图片的尺寸,在实际的视频中,输入的图片尺寸有可能为0,那么在reshape操作的时候就会报错。 在外层加一个保护就好了。