Very interesting. I'll try to use it to kickstart my libtorch bindings effort at <https://github.com/SciNim/minitorch/issues/1>.
If you want to see what I need to deal with git clone https://github.com/SciNim/minitorch cd minitorch nim c -r --outdir:build minitorch/torch_installer.nim Run This will compile and run the torch installer which downloads this file: <https://pytorch.org/get-started/locally>/ (for Linux: <https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.7.0.zip>) that contains a DLL + lots of headers.