self: (Tensor) the input tensor of size (*, n, n) where * is zero or more batch dimensions.
Note
Backward through `det` internally uses SVD results when `input` is
not invertible. In this case, double backward through `det` will be
unstable in when `input` doesn't have distinct singular values. See
`~torch.svd` for details.
det(input) -> Tensor
Calculates determinant of a square matrix or batches of square matrices.