cv::Exception at memory location due to net.forward()

unfortunately, those lines are entirely broken,
neither input nor output are images, but 4d tensors

please look up, how to parse YOLO results, then try again