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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user