-
- Downloads
Finnaly manage to support torch script exection
Note: for varous reasons torchScript compilation va torch.jit was not possible, on the python side the system insits on file resident code for traceing, with no recourse on the c++ the object is subltly different from the code used internally in the compile performed after traceing, breaking pytorchs usual bindings. By shipping own code based on the traceing path in an c++ torch extension the c++ path to torch::jit compilation would be possible, but this is a lot of effort. instead the usual cpython and pytoch -> libtorch is used instead this negatively affects performance when compeared to the usual case of torch::jit::compile used when using eisgenerator directly from c++
Showing
- CMakeLists.txt 9 additions, 12 deletionsCMakeLists.txt
- example/exampleTorch.py 24 additions, 0 deletionsexample/exampleTorch.py
- src/eisgenerator/__init__.py 1 addition, 0 deletionssrc/eisgenerator/__init__.py
- src/eisgenerator/execute.py 37 additions, 0 deletionssrc/eisgenerator/execute.py
- src/main.cpp 8 additions, 2 deletionssrc/main.cpp
example/exampleTorch.py
0 → 100755
src/eisgenerator/execute.py
0 → 100644
Please register or sign in to comment