Just solved my “bug” trying to produce the minimal reproducible example.
My VStudio 2019 Project was not properly configured. I was mixing libtorch 1.4 headers with 1.5 binaries   
@Rem_H  I recommend you copy the configuration from the cmake project created based on the minimal example here 26 and using the x64 native Tools Command Prompt