mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #17200 from YashasSamaga:cuda4dnn-general-opt1
cuda4dnn: optimizations for swish, mish, sigmoid, region, resize based ops, transpose, identity-conv fusion * bunch of optimizations * more accurate implementation for mish
This commit is contained in:
committed by
GitHub
parent
666be238d8
commit
d981d04c76
@@ -167,6 +167,10 @@ public:
|
||||
|
||||
virtual bool tryFuse(Ptr<Layer>& top) CV_OVERRIDE
|
||||
{
|
||||
Ptr<BlankLayer> blank_layer = top.dynamicCast<BlankLayer>();
|
||||
if (blank_layer)
|
||||
return true;
|
||||
|
||||
Mat w, b;
|
||||
top->getScaleShift(w, b);
|
||||
if (!w.empty() || !b.empty())
|
||||
|
||||
Reference in New Issue
Block a user