class_docstr: ASR Interface for ESPnet model implementation.
class_docstr_tok: ["ASR","Interface","for","ESPnet","model","implementation","."]
docstr: Compute loss for training.
  
  :param xs:
      For pytorch, batch of padded source sequences torch.Tensor (B, Tmax, idim)
      For chainer, list of source sequences chainer.Variable
  :param ilens: batch of lengths of source sequences (B)
      For pytorch, torch.Tensor
      For chainer, list of int
  :param ys:
      For pytorch, batch of padded source sequences torch.Tensor (B, Lmax)
      For chainer, list of source sequences chainer.Variable
  :return: loss value
  :rtype: torch.Tensor for pytorch, chainer.Variable for chainer
docstr_tok: ["Compute","loss","for","training",".",":","param","xs",":","For","pytorch",",","batch","of","padded","source","sequences","torch.Tensor","(","B",",","Tmax",",","idim",")","For","chainer",",","list","of","source","sequences","chainer.Variable",":","param","ilens",":","batch","of","lengths","of","source","sequences","(","B",")","For","pytorch",",","torch.Tensor","For","chainer",",","list","of","int",":","param","ys",":","For","pytorch",",","batch","of","padded","source","sequences","torch.Tensor","(","B",",","Lmax",")","For","chainer",",","list","of","source","sequences","chainer.Variable",":","return",":","loss","value",":","rtype",":","torch.Tensor","for","pytorch",",","chainer.Variable","for","chainer"]
code: def forward(self, xs, ilens, ys):
      """Compute loss for training.
  
      :param xs:
          For pytorch, batch of padded source sequences torch.Tensor (B, Tmax, idim)
          For chainer, list of source sequences chainer.Variable
      :param ilens: batch of lengths of source sequences (B)
          For pytorch, torch.Tensor
          For chainer, list of int
      :param ys:
          For pytorch, batch of padded source sequences torch.Tensor (B, Lmax)
          For chainer, list of source sequences chainer.Variable
      :return: loss value
      :rtype: torch.Tensor for pytorch, chainer.Variable for chainer
      """
      raise NotImplementedError("forward method is not implemented")
  
file_path: espnet/espnet/nets/asr_interface.py
imports: import argparse
  from espnet.bin.asr_train import get_parser
  from espnet.utils.dynamic_import import dynamic_import
  from espnet.utils.fill_missing_args import fill_missing_args
label_desc: Use image node_id 3 for calling the ASRInterface obj's underlying member method code with example usage: obj.forward(xs, ilens, ys) without return types