class_docstr: DotAttention
class_docstr_tok: ["DotAttention"]
code: def __init__(
      self,
      name,
      hidden_dim,
      is_vanilla=True,
      is_identity_transform=False,
      need_padding=False,
  ):
      self._name = "/".join([name, "dot_att"])
      self._hidden_dim = hidden_dim
      self._is_identity_transform = is_identity_transform
      self._need_padding = need_padding
      self._is_vanilla = is_vanilla
      self._var = {}
  
file_path: nni/examples/trials/weight_sharing/ga_squad/attention.py
imports: import math
  import tensorflow
  from tensorflow.python.ops.rnn_cell_impl import RNNCell
label_desc: Use image node_id 1 to create a new DotAttention object  with example: obj = DotAttention(name, hidden_dim, is_vanilla, is_identity_transform, need_padding)