Thanks for the response @peterjc123. I tried doing that, but it still stops abruptly without showing any exception or error.
I also tried downloading the Stable Version of libtorch again, but it still doesn’t work.