parameters: (self, inputs, mask=None)
return_statement: return mask
docstring: Computes an output mask tensor.
  
      Arguments:
          inputs: Tensor or list of tensors.
          mask: Tensor or list of tensors.
  
      Returns:
          None or a tensor (or list of tensors,
              one per output tensor of the layer).
docstring_summary: Computes an output mask tensor.
docstring_tokens: Computes an output mask tensor .
function: def compute_mask(self, inputs, mask=None):  # pylint: disable=unused-argument
      """Computes an output mask tensor.
  
      Arguments:
          inputs: Tensor or list of tensors.
          mask: Tensor or list of tensors.
  
      Returns:
          None or a tensor (or list of tensors,
              one per output tensor of the layer).
      """
      if not self.supports_masking:
        if mask is not None:
          if isinstance(mask, list):
            if any(m is not None for m in mask):
              raise TypeError('Layer ' + self.name + ' does not support masking, '
                              'but was passed an input_mask: ' + str(mask))
          else:
            raise TypeError('Layer ' + self.name + ' does not support masking, '
                            'but was passed an input_mask: ' + str(mask))
        # masking not explicitly supported: return None as mask
        return None
      # if masking is explicitly supported, by default
      # carry over the input mask
      return mask
function_tokens: def compute_mask ( self , inputs , mask = None ) : # pylint: disable=unused-argument if not self . supports_masking : if mask is not None : if isinstance ( mask , list ) : if any ( m is not None for m in mask ) : raise TypeError ( 'Layer ' + self . name + ' does not support masking, ' 'but was passed an input_mask: ' + str ( mask ) ) else : raise TypeError ( 'Layer ' + self . name + ' does not support masking, ' 'but was passed an input_mask: ' + str ( mask ) ) # masking not explicitly supported: return None as mask return None # if masking is explicitly supported, by default # carry over the input mask return mask