image835×516 42.1 KB
image357×953 14.8 KB
I want to use libtorch functions in OpenMP. However, there are some problems:

Only the last thread returns correct results.
Other threads get wrong results.

Has anyone encountered the same problem? Thanks!