Class ov::op::v4::CTCLoss

class CTCLoss : public ov::op::Op

CTCLoss operation.

Public Functions

CTCLoss(const Output<Node> &logits, const Output<Node> &logit_length, const Output<Node> &labels, const Output<Node> &label_length, const bool preprocess_collapse_repeated = false, const bool ctc_merge_repeated = true, const bool unique = false)

Constructs a CTCLoss operation.

  • logits – 3-D tensor of logits

  • logit_length – 1-D tensor of length for each object from a batch

  • labels – 2-D tensor of labels for which likelyhood is estimated using logist

  • label_length – 1-D tensor of length for each label sequence

  • blank_index – Scalar used to mark a blank index

  • preprocess_collapse_repeated – Flag for preprocessing labels before loss calculation

  • ctc_merge_repeated – Flag for merging repeated characters in a potential alignment

  • unique – Flag to find unique elements in a target before matching with alignment

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.