try to fix myriad
This commit is contained in:
parent
5e435d6fd9
commit
e61d3fcf91
@ -94,6 +94,9 @@ void EltwiseLayerTest::transformInputShapesAccordingEltwise(const ov::PartialSha
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EltwiseLayerTest::SetUp() {
|
void EltwiseLayerTest::SetUp() {
|
||||||
|
// w/a for myriad (cann't store 2 caches simultaneously)
|
||||||
|
ov::test::utils::PluginCache::get().reset();
|
||||||
|
|
||||||
std::vector<InputShape> shapes;
|
std::vector<InputShape> shapes;
|
||||||
ElementType netType;
|
ElementType netType;
|
||||||
ngraph::helpers::InputLayerType secondaryInputType;
|
ngraph::helpers::InputLayerType secondaryInputType;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "functional_test_utils/plugin_cache.hpp"
|
#include "functional_test_utils/plugin_cache.hpp"
|
||||||
|
#include "functional_test_utils/ov_plugin_cache.hpp"
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
@ -29,6 +30,9 @@ PluginCache &PluginCache::get() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<InferenceEngine::Core> PluginCache::ie(const std::string &deviceToCheck) {
|
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);
|
std::lock_guard<std::mutex> lock(g_mtx);
|
||||||
if (std::getenv("DISABLE_PLUGIN_CACHE") != nullptr) {
|
if (std::getenv("DISABLE_PLUGIN_CACHE") != nullptr) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user