RuntimeError: torch.linalg.lu_factor: (Batch element 1): U[4,4] is zero and using it on lu_solve would result in a division by zero. If you still want to perform the factorization, consider calling linalg.lu(A, pivot) or linalg.lu_factor_ex(A, pivot)

RuntimeError: torch.linalg.lu_factor: (Batch element 1): U[4,4] is zero and using it on lu_solve would result in a division by zero. If you still want to perform the factorization, consider calling linalg.lu(A, pivot) or linalg.lu_factor_ex(A, pivot)

I’m sorry to bother you, but I feel confused about this error. I want to confirm that this means not a bug about torch.linalg.lu_factor but I need to use another API (i.e., linalg.lu)