Closed mratsim closed 3 years ago
Toast still doesn't know C++, though I'm getting closer to start working on adding support.
You could use c2nImport() with recurse and see if c2nim can process the code. If there's no templates, it should be doable.
Or just run toast on the cli with the -pr flag but without -n which will generate the preprocessed recursed header which can then be run thru c2nim.
Closing. The bindings will be done manually.
This also will ensure high-quality and ergonomics and exploit all the implicit conversions/overloads in particular for c10::optional` and
TensorOptions`` parameters.
Yeah, first commit, first issue.
2 practical ways forward for generating the wrapper:
toast
from nimterop can help with that with the recurse optionnimtorch
style: https://github.com/sinkingsugar/nimtorch/blob/master/torch/torch_cpp.nimBut it seems like nimterop
-recurse
does see theinclude
but does not go deep? cc @genotranceAfter running torch_installer