class_docstr: DotAttention
class_docstr_tok: ["DotAttention"]
code: def _define_params(self, src_dim, tgt_dim):
      hidden_dim = self.hidden_dim
      self._get_var("W", [src_dim, hidden_dim])
      if not self.is_vanilla:
          self._get_var("V", [src_dim, hidden_dim])
          if self.need_padding:
              self._get_var("V_s", [src_dim, src_dim])
              self._get_var("V_t", [tgt_dim, tgt_dim])
          if not self.is_identity_transform:
              self._get_var("T", [tgt_dim, src_dim])
      self._get_var("U", [tgt_dim, hidden_dim])
      self._get_var("b", [1, hidden_dim])
      self._get_var("v", [hidden_dim, 1])
  
file_path: nni/examples/trials/ga_squad/attention.py
imports: import math
  import tensorflow
  from tensorflow.python.ops.rnn_cell_impl import RNNCell
label_desc: Use image node_id 9 for calling the DotAttention obj's underlying member method code with example usage: obj._define_params(src_dim, tgt_dim) without return types