Used IE_THROW macro (#4869)

* Added ie throw macro

* Used IE_THROW macro
This commit is contained in:
Anton Pankratv
2021-03-23 18:57:12 +03:00
committed by GitHub
parent c3fc40052c
commit 3b3d9a0989
346 changed files with 2496 additions and 2483 deletions

View File

@@ -32,7 +32,7 @@ void fillBlobs(InferenceEngine::InferRequest inferRequest,
} else if (item.second->getPrecision() == InferenceEngine::Precision::I32) {
fillBlobImInfo<int32_t>(inputBlob, batchSize, image_size);
} else {
THROW_IE_EXCEPTION << "Input precision is not supported for image info!";
IE_THROW() << "Input precision is not supported for image info!";
}
continue;
}
@@ -52,7 +52,7 @@ void fillBlobs(InferenceEngine::InferRequest inferRequest,
} else if (item.second->getPrecision() == InferenceEngine::Precision::I16) {
fillBlobRandom<int16_t>(inputBlob);
} else {
THROW_IE_EXCEPTION << "Input precision is not supported for " << item.first;
IE_THROW() << "Input precision is not supported for " << item.first;
}
}
}

View File

@@ -57,7 +57,7 @@ inline std::pair<size_t, size_t> getTensorHeightWidth(const InferenceEngine::Ten
// Regardless of layout, dimensions are stored in fixed order
return std::make_pair(dims.back(), dims.at(size - 2));
} else {
THROW_IE_EXCEPTION << "Tensor does not have height and width dimensions";
IE_THROW() << "Tensor does not have height and width dimensions";
}
}