1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Enable stateful kernels in G-API OCV Backend

This commit is contained in:
AsyaPronina
2020-06-04 19:55:49 +03:00
parent c3e8a82c9c
commit b083c20eb2
15 changed files with 527 additions and 44 deletions
+11
View File
@@ -72,6 +72,12 @@ void cv::GCompiled::Priv::reshape(const GMetaArgs& inMetas, const GCompileArgs&
m_metas = inMetas;
}
void cv::GCompiled::Priv::prepareForNewStream()
{
GAPI_Assert(m_exec);
m_exec->prepareForNewStream();
}
const cv::gimpl::GModel::Graph& cv::GCompiled::Priv::model() const
{
GAPI_Assert(nullptr != m_exec);
@@ -155,3 +161,8 @@ void cv::GCompiled::reshape(const GMetaArgs& inMetas, const GCompileArgs& args)
{
m_priv->reshape(inMetas, args);
}
void cv::GCompiled::prepareForNewStream()
{
m_priv->prepareForNewStream();
}
@@ -48,6 +48,7 @@ public:
bool canReshape() const;
void reshape(const GMetaArgs& inMetas, const GCompileArgs &args);
void prepareForNewStream();
void run(cv::gimpl::GRuntimeArgs &&args);
const GMetaArgs& metas() const;