Slicer 5.9.0 with libtorch

Haoyin_Zhou
Wed, 11 Jun 2025 15:59:16 +0000
Development

hi, I am developing a c++ module on Slicer 5.9.0. I have a lot of confusion to use libtorch together with Slicer. I can compile the code but when I call a libtorch function, such as torch::jit::load(path), it crashes without given any error message.

In the past I used an older version Slicer (4.13.0) and it works well with libtorch.

Do you have any success experience to use libtorch with Slicer 5.9.0? I have tried many versions of libtorch but none of them works.

Thanks.

7 posts - 4 participants