def batch_2x2_det(m: Tensor) -> Tensor:
    """Returns determinant of batch of 2x2 matrices."""
    a = m[..., 0, 0]
    b = m[..., 0, 1]
    c = m[..., 1, 0]
    d = m[..., 1, 1]
    return a * d - b * c
Returns determinant of batch of 2x2 matrices.
kornia/feature/adalam/utils.py