[CPU BF16] FP32 exception was removed (#2326)

This commit is contained in:
Alexey Varyzgin 2020-09-22 18:19:50 +03:00 committed by GitHub
parent 2ea02b2012
commit 193bdb3195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,9 +51,6 @@ public:
if (layer->insData.size() != 1)
THROW_IE_EXCEPTION << layer->name << " Incorrect number of input edges!";
if (layer->insData[0].lock()->getTensorDesc().getPrecision() != Precision::FP32)
THROW_IE_EXCEPTION << layer->name << " Incorrect input precision. Only FP32 is supported!";
if (layer->insData[0].lock()->getTensorDesc().getDims() != layer->outData[0]->getTensorDesc().getDims())
THROW_IE_EXCEPTION << layer->name << " Incorrect number of input/output dimensions!";
@ -88,7 +85,7 @@ public:
else
THROW_IE_EXCEPTION << layer->name << " Incorrect Math layer type!";
addConfig(layer, { { ConfLayout::PLN, false, 0 } }, { { ConfLayout::PLN, false, 0 } });
addConfig(layer, {DataConfigurator(ConfLayout::PLN, Precision::FP32)}, {DataConfigurator(ConfLayout::PLN, Precision::FP32)});
} catch (InferenceEngine::details::InferenceEngineException &ex) {
errorMsg = ex.what();
}