// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2018-2020 Intel Corporation
#include "precomp.hpp"
// FIXME: Add details on what is actually wrong
}
validate_input_args(args.inObjs);
+ // FIXME: Actually, the passed parameter vector is never checked
+ // against its shapes - so if you compile with GScalarDesc passed
+ // for GMat argument, you will get your compilation right (!!)
+ // Probably it was there but somehow that olds checks (if they
+ // exist) are bypassed now.
}
bool cv::GCompiled::Priv::canReshape() const
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);
void cv::GCompiled::operator() (GRunArgs &&ins, GRunArgsP &&outs)
{
+ // FIXME: Check that <ins> matches the protocol!!!
// FIXME: Check that <outs> matches the protocol
m_priv->run(cv::gimpl::GRuntimeArgs{std::move(ins),std::move(outs)});
}
{
m_priv->reshape(inMetas, args);
}
+
+void cv::GCompiled::prepareForNewStream()
+{
+ m_priv->prepareForNewStream();
+}