I am getting exactly the same error on a totally different scenario with torch.cholesky_solve where on libtorch 1.4.0 I had none. I am really interested on this.
Downloaded previous 1.4.0 and confirmed the problem is with 1.5.0. Trying to write minimal reproducible example to report the bug.