try to fix myriad

This commit is contained in:
Efode, Irina 2021-10-28 10:41:58 +03:00
parent 5e435d6fd9
commit e61d3fcf91
2 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,9 @@ void EltwiseLayerTest::transformInputShapesAccordingEltwise(const ov::PartialSha
}
void EltwiseLayerTest::SetUp() {
// w/a for myriad (cann't store 2 caches simultaneously)
ov::test::utils::PluginCache::get().reset();
std::vector<InputShape> shapes;
ElementType netType;
ngraph::helpers::InputLayerType secondaryInputType;

View File

@ -3,6 +3,7 @@
//
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/ov_plugin_cache.hpp"
#include <cstdlib>
#include <unordered_map>
@ -29,6 +30,9 @@ PluginCache &PluginCache::get() {
}
std::shared_ptr<InferenceEngine::Core> PluginCache::ie(const std::string &deviceToCheck) {
// w/a for myriad (cann't store 2 caches simultaneously)
ov::test::utils::PluginCache::get().reset();
std::lock_guard<std::mutex> lock(g_mtx);
if (std::getenv("DISABLE_PLUGIN_CACHE") != nullptr) {
#ifndef NDEBUG