namespace LayerTestsUtils {
LayerTestsCommon::LayerTestsCommon() {
- core = PluginCache::get().ie(targetDevice).get();
+ core = PluginCache::get().ie(targetDevice);
}
void LayerTestsCommon::Run() {
std::vector<InferenceEngine::Blob::Ptr> GetOutputs();
- InferenceEngine::Core *core = nullptr;
+ std::shared_ptr<InferenceEngine::Core> core;
InferenceEngine::CNNNetwork cnnNetwork;
InferenceEngine::InferRequest inferRequest;
RefMode refMode = RefMode::INTERPRETER;
InferenceEngine::ExecutableNetwork ImportNetwork(std::istream& networkModel,
const std::map<std::string, std::string>& config = {});
+ std::shared_ptr<InferenceEngine::Core>& ieCore() {
+ return m_ieCore;
+ }
+
private:
std::shared_ptr<InferenceEngine::Core> m_ieCore;
std::string m_deviceName;
}
}
- _vpuPluginPtr = {};
+ _exeNetwork = {};
+ _inferRequest = {};
+ _refBlob = {};
+
+ TestsCommon::TearDown();
}
bool vpuLayersTests::CheckMyriadX() {
}
void vpuLayersTests::readNetwork(const std::string& model, const WeightsBlob::Ptr& modelWeights) {
- _cnnNetwork = PluginCache::get().ie()->ReadNetwork(model, modelWeights);
+ _cnnNetwork = _vpuPluginPtr->ieCore()->ReadNetwork(model, modelWeights);
ASSERT_NO_THROW(_inputsInfo = _cnnNetwork.getInputsInfo());
ASSERT_NO_THROW(_outputsInfo = _cnnNetwork.getOutputsInfo());