class_docstr: Soft alignment attention implement.
  
  Attributes:
      dim (int): attention hidden dim
docstr: Compte output mask value
  
  Args:
      input (object): input tensor.
      input_mask: input mask
  
  Returns:
      object: output mask.
docstr_tok: ["Compte","output","mask","value","Args",":","input","(","object",")",":","input","tensor",".","input_mask",":","input","mask","Returns",":","object",":","output","mask","."]
code: def compute_mask(self, input, input_mask=None):
      """Compte output mask value
  
      Args:
          input (object): input tensor.
          input_mask: input mask
  
      Returns:
          object: output mask.
      """
      return None
  
imports: import tensorflow.compat.v1.keras
  from tensorflow.compat.v1.linalg import einsum
  from tensorflow.compat.v1.keras import layers
  from tensorflow.compat.v1.keras import backend
label_desc: Use image node_id 4 for calling the AttLayer2 obj's underlying member method code with example usage: obj.compute_mask(input, input_mask) and returns: None