'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).'

def compute_mask(self, inputs, mask=None):

    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)))
        return None
    return mask
