Skip to content

Commit

Permalink
Validate missing precisions
Browse files Browse the repository at this point in the history
  • Loading branch information
apertovs committed Apr 29, 2021
1 parent 793f4fa commit 12e5706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ MKLDNNRollNode::MKLDNNRollNode(const InferenceEngine::CNNLayerPtr& layer, const
const auto &dataShape = dataTensor.getDims();
const auto &dataPrecision = dataTensor.getPrecision();

if (!MKLDNNPlugin::one_of(dataPrecision, Precision::I8, Precision::U8, Precision::I16, Precision::I32, Precision::FP32, Precision::I64)) {
if (!MKLDNNPlugin::one_of(dataPrecision, Precision::I8, Precision::U8, Precision::I16, Precision::I32, Precision::FP32, Precision::I64, Precision::BF16)) {
IE_THROW() << layerErrorPrefix << " has unsupported 'data' input precision: " << dataPrecision.name();
}
if (dataShape.size() < 1) {
Expand Down Expand Up @@ -95,7 +95,6 @@ void MKLDNNRollNode::initSupportedPrimitiveDescriptors() {

InferenceEngine::Precision precision = inputData->getPrecision();


auto dataType = MKLDNNExtensionUtils::IEPrecisionToDataType(precision);

auto srcDims = getParentEdgeAt(0)->getDims();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const std::vector<InferenceEngine::Precision> inputPrecision = {
InferenceEngine::Precision::I16,
InferenceEngine::Precision::I32,
InferenceEngine::Precision::FP32,
InferenceEngine::Precision::I64,
InferenceEngine::Precision::BF16
};

const auto testCase2DZeroShifts = ::testing::Combine(
Expand Down

0 comments on commit 12e5706

Please sign in to comment.