Skip to content

Commit

Permalink
ctcgreedydecoderlen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed Oct 12, 2023
1 parent 57741d3 commit bb809f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void CTCGreedyDecoderSeqLen::initSupportedPrimitiveDescriptors() {
return;

Precision inDataPrecision = getOriginalInputPrecisionAtPort(DATA_INDEX);
if (inDataPrecision != Precision::FP32 && inDataPrecision != Precision::BF16 && inDataPrecision != Precision::FP16)
if (!one_of(inDataPrecision, Precision::FP32, Precision::BF16, Precision::FP16))
IE_THROW() << errorPrefix << "has unsupported 'data' input precision: " << inDataPrecision;

Precision seqLenPrecision = getOriginalInputPrecisionAtPort(SEQUENCE_LENGTH_INDEX);
Expand Down

0 comments on commit bb809f6

Please sign in to comment.