Used IE_THROW macro (#4869)
* Added ie throw macro * Used IE_THROW macro
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user