Add fillBlobs to fix issue with negative values in image_info input layer (#3271)

This commit is contained in:
Vitaliy Urusovskij
2020-11-23 17:32:49 +03:00
committed by GitHub
parent 9f427bbf6e
commit 4bfb353dbd
9 changed files with 242 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
#include "tests_utils.h"
#include "../common/tests_utils.h"
#include "../common/ie_utils.h"
#include "../common/managers/thread_manager.h"
#include "tests_pipelines/tests_pipelines.h"
@@ -75,6 +76,12 @@ TEST_P(MemCheckTestSuite, infer_request_inference) {
CNNNetwork cnnNetwork = ie.ReadNetwork(model);
ExecutableNetwork exeNetwork = ie.LoadNetwork(cnnNetwork, device);
InferRequest inferRequest = exeNetwork.CreateInferRequest();
auto batchSize = cnnNetwork.getBatchSize();
batchSize = batchSize != 0 ? batchSize : 1;
const ConstInputsDataMap inputsInfo(exeNetwork.GetInputsInfo());
fillBlobs(inferRequest, inputsInfo, batchSize);
inferRequest.Infer();
OutputsDataMap output_info(cnnNetwork.getOutputsInfo());
for (auto &output : output_info)