// 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-2019 Intel Corporation #include "precomp.hpp" #include #include cv::gapi::GNetPackage::GNetPackage(std::initializer_list ii) : networks(ii) { } cv::gapi::GNetPackage::GNetPackage(std::vector nets) : networks(nets) { } std::vector cv::gapi::GNetPackage::backends() const { std::unordered_set unique_set; for (const auto &nn : networks) unique_set.insert(nn.backend); return std::vector(unique_set.begin(), unique_set.end()); }