实现pytorch resnet18功能(四,c++ cudnn)使用虚线的残差块类:(yolo v3版本,一次成功!)封装如下:__global__ void shortcut_kernel(int size, int minw, int minh, int minc, int stride, int sample, int batch, int w1, int h1, int c1, float* add, int w2, int h2, int c2, float* out) { int id = (blockIdx.x + blockIdx.y * gridDi