Skip to content

Commit dd70291

Browse files
fengyuentaushyama7004
authored andcommitted
fix build
1 parent 42bf99d commit dd70291

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/dnn/src/layers/elementwise_layers.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,15 @@ struct GeluFunctor : public BaseFunctor {
938938
}
939939
#endif // HAVE_DNN_NGRAPH
940940

941+
#ifdef HAVE_CANN
942+
Ptr<BackendNode> initCannOp(const std::string& name,
943+
const std::vector<Ptr<BackendWrapper> > &inputs,
944+
const std::vector<Ptr<BackendNode> >& nodes)
945+
{
946+
CV_Error(Error::StsNotImplemented, "");
947+
}
948+
#endif // HAVE_CANN
949+
941950
int64 getFLOPSPerElement() const { return 100; }
942951
};
943952

0 commit comments

Comments
 (0)