In case anyone’s interested, I’ve made an example UE4 project based on the goodai 16 tutorial:
DLL Project: https://github.com/NeuralVFX/basic-libtorch-dll 45
Unreal Project: https://github.com/NeuralVFX/basic-unreal-libtorch-plugin 76
The example uses the CPU, however, if @Fhrozen is right, changing a couple lines of code will make it GPU compatible.