Download modules/gapi/src/backends/ov/govbackend.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/ov/govbackend.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/backends/ov/govbackend.hpp
-
curl -L -o govbackend.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/ov/govbackend.hpp
2.14 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) 2023 Intel Corporation | |
| // Include anyway - cv::gapi::ov::backend() still needs to be defined | |
| namespace cv { | |
| namespace gimpl { | |
| namespace ov { | |
| struct OVCompiled { | |
| ::ov::CompiledModel compiled_model; | |
| }; | |
| class RequestPool; | |
| struct Options { | |
| // Only performs inference of the model | |
| // without i/o data transfer if enabled. | |
| bool inference_only = false; | |
| }; | |
| class GOVExecutable final: public GIslandExecutable | |
| { | |
| const ade::Graph &m_g; | |
| GModel::ConstGraph m_gm; | |
| // The only executable stuff in this graph | |
| // (assuming it is always single-op) | |
| ade::NodeHandle this_nh; | |
| OVCompiled compiled; | |
| // List of all resources in graph (both internal and external) | |
| std::vector<ade::NodeHandle> m_dataNodes; | |
| // To manage multiple async requests | |
| std::unique_ptr<RequestPool> m_reqPool; | |
| // To manage additional execution options | |
| Options m_options; | |
| public: | |
| GOVExecutable(const ade::Graph &graph, | |
| const cv::GCompileArgs &compileArgs, | |
| const std::vector<ade::NodeHandle> &nodes); | |
| virtual inline bool canReshape() const override { return false; } | |
| virtual inline void reshape(ade::Graph&, const GCompileArgs&) override { | |
| GAPI_Error("InternalError"); // Not implemented yet | |
| } | |
| virtual void run(std::vector<InObj> &&, | |
| std::vector<OutObj> &&) override { | |
| GAPI_Error("Not implemented"); | |
| } | |
| virtual void run(GIslandExecutable::IInput &in, | |
| GIslandExecutable::IOutput &out) override; | |
| }; | |
| }}} | |