Download modules/gapi/src/compiler/gcompiled_priv.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.89 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/compiler/gcompiled_priv.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/compiler/gcompiled_priv.hpp
-
curl -L -o gcompiled_priv.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/compiler/gcompiled_priv.hpp
1.89 kB
| // This file is part of OpenCV project. | |
| // 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-2020 Intel Corporation | |
| // NB: BTW, GCompiled is the only "public API" class which | |
| // private part (implementation) is hosted in the "compiler/" module. | |
| // | |
| // This file is here just to keep ADE hidden from the top-level APIs. | |
| // | |
| // As the thing becomes more complex, appropriate API and implementation | |
| // part will be placed to api/ and compiler/ modules respectively. | |
| namespace cv { | |
| namespace gimpl | |
| { | |
| struct GRuntimeArgs; | |
| } | |
| // FIXME: GAPI_EXPORTS is here only due to tests and Windows linker issues | |
| class GAPI_EXPORTS GCompiled::Priv | |
| { | |
| // NB: For now, a GCompiled keeps the original ade::Graph alive. | |
| // If we want to go autonomous, we might to do something with this. | |
| GMetaArgs m_metas; // passed by user | |
| GMetaArgs m_outMetas; // inferred by compiler | |
| std::unique_ptr<cv::gimpl::GAbstractExecutor> m_exec; | |
| void checkArgs(const cv::gimpl::GRuntimeArgs &args) const; | |
| public: | |
| void setup(const GMetaArgs &metaArgs, | |
| const GMetaArgs &outMetas, | |
| std::unique_ptr<cv::gimpl::GAbstractExecutor> &&pE); | |
| bool isEmpty() const; | |
| bool canReshape() const; | |
| void reshape(const GMetaArgs& inMetas, const GCompileArgs &args); | |
| void prepareForNewStream(); | |
| void run(cv::gimpl::GRuntimeArgs &&args); | |
| const GMetaArgs& metas() const; | |
| const GMetaArgs& outMetas() const; | |
| const cv::gimpl::GModel::Graph& model() const; | |
| }; | |
| } | |