def _assert_non_singular(self):
    if all((operator.is_square for operator in self.operators)):
        asserts = [operator.assert_non_singular() for operator in self.operators]
        return control_flow_ops.group(asserts)
    else:
        raise errors.InvalidArgumentError(node_def=None, op=None, message='All Kronecker factors must be square for the product to be invertible.')
def _assert_non_singular(self):
    if all((operator.is_square for operator in self.operators)):
        asserts = [operator.assert_non_singular() for operator in self.operators]
        return control_flow_ops.group(asserts)
    else:
        raise errors.InvalidArgumentError(node_def=None, op=None, message='All Kronecker factors must be square for the product to be invertible.')