float alpha1 = alpha1_, bias1 = bias1_, beta1 = beta1_;
int k, channels = channels_, ksize = ksize_;
- AutoBuffer<float> buf_((channels + ksize*2 + 4)*2);
+ AutoBuffer<float> buf_((channels + ksize + 1)*2);
float* acc = (float*)buf_;
float* buf = acc + channels + ksize + 1;
for( k = 0; k <= ksize; k++ )
net.setPreferableTarget(DNN_TARGET_OPENCL);
// Initialize network for a single image in the batch but test with batch size=2.
- net.setInput(blobFromImage(Mat(224, 224, CV_8UC3)));
+ Mat inp = Mat(224, 224, CV_8UC3);
+ randu(inp, -1, 1);
+ net.setInput(blobFromImage(inp));
net.forward();
std::vector<Mat> inpMats;