mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #9829 from pengli:ocl4dnn
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
config.in_shape = shape(*inputs[0]);
|
||||
config.axis = axisRaw;
|
||||
config.channels = inputs[0]->size[axisRaw];
|
||||
config.logsoftmax = logSoftMax;
|
||||
|
||||
softmaxOp = Ptr<OCL4DNNSoftmax<float> >(new OCL4DNNSoftmax<float>(config));
|
||||
}
|
||||
@@ -108,7 +109,7 @@ public:
|
||||
srcMat = inputs[0]->getUMat(ACCESS_READ);
|
||||
dstMat = outputs[0].getUMat(ACCESS_WRITE);
|
||||
|
||||
if (!logSoftMax && softmaxOp->Forward(srcMat, dstMat))
|
||||
if (softmaxOp->Forward(srcMat, dstMat))
|
||||
return true;
|
||||
|
||||
const Mat &src = *inputs[0];
|
||||
|
||||
Reference in New Issue
Block a user