class_docstr: MT Interface for ESPnet model implementation.
class_docstr_tok: ["MT","Interface","for","ESPnet","model","implementation","."]
docstr: Calculate attention.
  
  :param list xs: list of padded input sequences [(T1, idim), (T2, idim), ...]
  :param ndarray ilens: batch of lengths of input sequences (B)
  :param list ys: list of character id sequence tensor [(L1), (L2), (L3), ...]
  :return: attention weights (B, Lmax, Tmax)
  :rtype: float ndarray
docstr_tok: ["Calculate","attention",".",":","param","list","xs",":","list","of","padded","input","sequences","[","(","T1",",","idim",")",",","(","T2",",","idim",")",",","...","]",":","param","ndarray","ilens",":","batch","of","lengths","of","input","sequences","(","B",")",":","param","list","ys",":","list","of","character","id","sequence","tensor","[","(","L1",")",",","(","L2",")",",","(","L3",")",",","...","]",":","return",":","attention","weights","(","B",",","Lmax",",","Tmax",")",":","rtype",":","float","ndarray"]
code: def calculate_all_attentions(self, xs, ilens, ys):
      """Calculate attention.
  
      :param list xs: list of padded input sequences [(T1, idim), (T2, idim), ...]
      :param ndarray ilens: batch of lengths of input sequences (B)
      :param list ys: list of character id sequence tensor [(L1), (L2), (L3), ...]
      :return: attention weights (B, Lmax, Tmax)
      :rtype: float ndarray
      """
      raise NotImplementedError(
          "calculate_all_attentions method is not implemented"
      )
  
file_path: espnet/espnet/nets/mt_interface.py
imports: import argparse
  from espnet.bin.asr_train import get_parser
  from espnet.utils.fill_missing_args import fill_missing_args
label_desc: Use image node_id 6 for calling the MTInterface obj's underlying member method code with example usage: obj.calculate_all_attentions(xs, ilens, ys) without return types