Class ov::op::v6::CTCGreedyDecoderSeqLen#

class CTCGreedyDecoderSeqLen : public ov::op::Op#

Operator performing CTCGreedyDecoder.

Public Functions

CTCGreedyDecoderSeqLen(const Output<Node> &input, const Output<Node> &seq_len, const bool merge_repeated = true, const element::Type &classes_index_type = element::i32, const element::Type &sequence_length_type = element::i32)#

Constructs a CTCGreedyDecoderSeqLen operation.

Parameters:
  • input – 3-D tensor of logits on which greedy decoding is performed

  • seq_len – 1-D tensor of sequence lengths

  • merge_repeated – Whether to merge repeated labels

  • classes_index_type – Specifies the output classes_index tensor type

  • sequence_length_type – Specifies the output sequence_length tensor type

CTCGreedyDecoderSeqLen(const Output<Node> &input, const Output<Node> &seq_len, const Output<Node> &blank_index, const bool merge_repeated = true, const element::Type &classes_index_type = element::i32, const element::Type &sequence_length_type = element::i32)#

Constructs a CTCGreedyDecoderSeqLen operation.

Parameters:
  • input – 3-D tensor of logits on which greedy decoding is performed

  • seq_len – 1-D tensor of sequence lengths

  • blank_index – Scalar or 1-D tensor with 1 element used to mark a blank index

  • merge_repeated – Whether to merge repeated labels

  • classes_index_type – Specifies the output classes_index tensor type

  • sequence_length_type – Specifies the output sequence_length tensor type

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

inline bool get_merge_repeated() const#

Get merge_repeated attribute.

Returns:

Current value of merge_repeated attribute

inline void set_merge_repeated(bool merge_repeated)#

Set merge_repeated attribute.

Parameters:

merge_repeated – A new value for the attribute

inline const element::Type &get_classes_index_type() const#

Get classes_index_type attribute.

Returns:

Current value of classes_index_type attribute

inline void set_classes_index_type(const element::Type &classes_index_type)#

Set classes_index_type attribute.

Parameters:

classes_index_type – Type of classes_index

inline const element::Type &get_sequence_length_type() const#

Get sequence_length_type attribute.

Returns:

Current value of sequence_length_type attribute

inline void set_sequence_length_type(const element::Type &sequence_length_type)#

Set sequence_length_type attribute.

Parameters:

sequence_length_type – Type of sequence length