1 #include <catch2/catch_all.hpp>
16 std::string name = in.first;
17 auto tensor = in.second;
18 printf(
"'%s - dims: %d - order: %04x - type: %d' ", name.c_str(), tensor.numDimensions, tensor.order, tensor.dataType);
21 std::string name = out.first;
22 auto tensor = out.second;
23 printf(
"'%s - dims: %d - order: %04x - type: %d' ", name.c_str(), tensor.numDimensions, tensor.order, tensor.dataType);
45 nn->setBlob(std::move(blob));
49 REQUIRE_THROWS_AS(
dai::Device(p), std::runtime_error);
59 nn->setBlob(std::move(blob));
73 nn->setBlob(std::move(blob));
87 nn->setBlob(std::move(blob));
101 nn->setBlob(std::move(blob));
115 nn->setBlob(std::move(blob));
129 nn->setBlob(std::move(blob));
144 REQUIRE_THROWS_AS(
dai::Device(p), std::runtime_error);
203 std::ifstream stream(OPENVINO_2021_4_BLOB_PATH, std::ios::in | std::ios::binary);
204 std::vector<std::uint8_t> blobData(std::istreambuf_iterator<char>(stream), {});
207 blobData.resize(blobData.size() / 2);
214 TEST_CASE(
"OpenVINO 2020.4 blob, test with universal FW") {
224 TEST_CASE(
"OpenVINO 2021.1 blob, test with universal FW") {
234 TEST_CASE(
"OpenVINO 2021.2 blob, test with universal FW") {
244 TEST_CASE(
"OpenVINO 2021.3 blob, test with universal FW") {
254 TEST_CASE(
"OpenVINO 2021.4 blob, test with universal FW") {
264 TEST_CASE(
"OpenVINO 2022.1 blob, test with universal FW") {