@JosephC Thank you very much for your reply.
It  only show crash message as following:

image1402×416 25.3 KB

How to check whether the cuda/torch dll has been found?
I build the project by cmake, and I search the cuda in the cmake by:
find_package(CUDA REQUIRED)

And the cmake can find the cuda: CUDA_TOOLKIT_ROOT_DIR.
Do you have any other suggestion?