self: (Tensor) the input tensor of size (∗,n,n) where * is zero or more batch dimensions
Note
Irrespective of the original strides, the returned tensors will be
transposed, i.e. with strides like `input.contiguous().transpose(-2, -1).stride()`
inverse(input, out=NULL) -> Tensor
Takes the inverse of the square matrix input. input can be batches of 2D square tensors, in which case this function would return a tensor composed of individual inverses.