class_docstr: E2E module.
  
  :param int idim: dimension of inputs
  :param int odim: dimension of outputs
  :param Namespace args: argument Namespace containing options
class_docstr_tok: ["E2E","module",".",":","param","int","idim",":","dimension","of","inputs",":","param","int","odim",":","dimension","of","outputs",":","param","Namespace","args",":","argument","Namespace","containing","options"]
docstr: Initialize weight like Fairseq.
  
  Fairseq basically uses W, b, EmbedID.W ~ Uniform(-0.1, 0.1),
docstr_tok: ["Initialize","weight","like","Fairseq",".","Fairseq","basically","uses","W",",","b",",","EmbedID.W","~","Uniform","(","-0.1",",","0.1",")",","]
code: def init_like_fairseq(self):
      """Initialize weight like Fairseq.
  
      Fairseq basically uses W, b, EmbedID.W ~ Uniform(-0.1, 0.1),
      """
      uniform_init_parameters(self)
      # exceptions
      # embed weight ~ Normal(-0.1, 0.1)
      torch.nn.init.uniform_(self.embed.weight, -0.1, 0.1)
      torch.nn.init.constant_(self.embed.weight[self.pad], 0)
      torch.nn.init.uniform_(self.dec.embed.weight, -0.1, 0.1)
      torch.nn.init.constant_(self.dec.embed.weight[self.pad], 0)
  
imports: import argparse
  import logging
  import math
  import os
  import chainer
  import nltk
  import numpy
  import torch
  from chainer import reporter
  from espnet.nets.e2e_asr_common import label_smoothing_dist
  from espnet.nets.mt_interface import MTInterface
  from espnet.nets.pytorch_backend.initialization import uniform_init_parameters
  from espnet.nets.pytorch_backend.nets_utils import get_subsample, pad_list, to_device
  from espnet.nets.pytorch_backend.rnn.argument import add_arguments_rnn_attention_common, add_arguments_rnn_decoder_common, add_arguments_rnn_encoder_common
  from espnet.nets.pytorch_backend.rnn.attentions import att_for
  from espnet.nets.pytorch_backend.rnn.decoders import decoder_for
  from espnet.nets.pytorch_backend.rnn.encoders import encoder_for
  from espnet.utils.fill_missing_args import fill_missing_args
label_desc: Use image node_id 6 for calling the E2E obj's underlying member method code with example usage: obj.init_like_fairseq() without return types