Closed nvahmadi closed 1 year ago
Thanks @nvahmadi!
@balbasty shall we perhaps replace any use of .solve()
with the NITorch alternative lmdiv
?
That would probably be the best alternative. lmdiv uses solve (or linalg.solve) under the hood but there’s a test to use the correct function for each torch version. I kind of like that most of the code base works across many torch versions so I’d rather go that way.
Okay, I will do that then.
@nvahmadi can you please test the solve2lmdiv
branch and see if it resolves your issues? Thanks!
Sure! Does it need a rebuild for the C/cuda extensions?
That should not be needed.
I tried it - it works! :) Excellent, many thanks!
Hi, as discussed with @brudfors , I was just trying to run the
demo_affine_reg.ipynb
notebook, in a current MONAI container (e.g.projectmonai/monailabel:0.6.0
). Unfortunately, the torch syntax for solving A\b has changed. Already the first nitorch code cell:yields the following error:
The same error throws for all following nitorch code cells, e.g. for the command:
Would be great if nitorch could use the updated syntax, otherwise I'd need to search for the last torch/MONAI version that would work. Thanks in advance! :)