NicG
NicG
MModular
Created by NicG on 2/26/2024 in #questions
Mojo Yolo?
What would be the easiest way to implement Yolo in Mojo? I've previously written an inference only implementation from scratch (using no libs) in rust (which shares similar features to mojo), so I'm not too bothered about the language side, or the 'understanding yolo' side. What I AM wondering is how python module support is implemented under the hood I guess. If I
Python.import_module(pytorch)
Python.import_module(pytorch)
(or whatever) does that mean that all calls to this library are mediated by a python interpreter? Or does mojo just compile the calls directly to libtorch.so using some FFI magic? If it's the former, what approach would you suggest? Just porting my rust code and using mojo's built-in tensor module?
5 replies