[CPU] Add FP16 support to MatrixNms (#20804)
This commit is contained in:
parent
3f5f923a70
commit
e8f21eefae
@ -115,7 +115,7 @@ void MatrixNms::initSupportedPrimitiveDescriptors() {
|
|||||||
if (!supportedPrimitiveDescriptors.empty())
|
if (!supportedPrimitiveDescriptors.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const std::vector<Precision> supportedFloatPrecision = {Precision::FP32};
|
const std::vector<Precision> supportedFloatPrecision = {Precision::FP32, Precision::FP16};
|
||||||
const std::vector<Precision> supportedIntOutputPrecision = {Precision::I32, Precision::I64};
|
const std::vector<Precision> supportedIntOutputPrecision = {Precision::I32, Precision::I64};
|
||||||
|
|
||||||
checkPrecision(getOriginalInputPrecisionAtPort(NMS_BOXES), supportedFloatPrecision, "boxes", m_inType);
|
checkPrecision(getOriginalInputPrecisionAtPort(NMS_BOXES), supportedFloatPrecision, "boxes", m_inType);
|
||||||
|
@ -107,7 +107,7 @@ void MultiClassNms::initSupportedPrimitiveDescriptors() {
|
|||||||
if (!supportedPrimitiveDescriptors.empty())
|
if (!supportedPrimitiveDescriptors.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const std::vector<Precision> supportedFloatPrecision = {Precision::FP32, Precision::BF16};
|
const std::vector<Precision> supportedFloatPrecision = {Precision::FP32, Precision::FP16, Precision::BF16};
|
||||||
const std::vector<Precision> supportedIntOutputPrecision = {Precision::I32, Precision::I64};
|
const std::vector<Precision> supportedIntOutputPrecision = {Precision::I32, Precision::I64};
|
||||||
|
|
||||||
checkPrecision(getOriginalInputPrecisionAtPort(NMS_BOXES), supportedFloatPrecision, "boxes", m_inType);
|
checkPrecision(getOriginalInputPrecisionAtPort(NMS_BOXES), supportedFloatPrecision, "boxes", m_inType);
|
||||||
|
Loading…
Reference in New Issue
Block a user