(labels, logits, blank_index)
return labels, logits
data transform according blank_index
data transform according blank_index
data transform according blank_index
def ctc_data_transform(labels, logits, blank_index):
  '''
  data transform according blank_index
  '''
  logits = ctc_utils.logits_blankid_to_last(
      logits=logits, blank_index=blank_index)

  num_class = logits.shape[2]
  labels = ctc_utils.labels_blankid_to_last(
      labels=labels, blank_index=blank_index, num_class=num_class)
  return labels, logits
def ctc_data_transform ( labels , logits , blank_index ) : logits = ctc_utils . logits_blankid_to_last ( logits = logits , blank_index = blank_index ) num_class = logits . shape [ 2 ] labels = ctc_utils . labels_blankid_to_last ( labels = labels , blank_index = blank_index , num_class = num_class ) return labels , logits