Merge pull request #26632 from fengyuentau:dnn/gelu_cann

dnn: Fix CANN build
This commit is contained in:
Alexander Smorkalov 2024-12-17 15:09:33 +03:00 committed by GitHub
commit 0ca98d437b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -938,6 +938,15 @@ struct GeluFunctor : public BaseFunctor {
}
#endif // HAVE_DNN_NGRAPH
#ifdef HAVE_CANN
Ptr<BackendNode> initCannOp(const std::string& name,
const std::vector<Ptr<BackendWrapper> > &inputs,
const std::vector<Ptr<BackendNode> >& nodes)
{
CV_Error(Error::StsNotImplemented, "");
}
#endif // HAVE_CANN
int64 getFLOPSPerElement() const { return 100; }
};