-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Autocxx generated methods with some kind of type safety, we currently don't take advantage of that since there are a lot of *mut c_void in the code base.
When using the generated real types directly, we could achieve more type safety in Rust and also ensure correct drop order of dependent chains like Runtime -> CudaEngine -> EngineInspector.
Also the Rust borrow checker could make sure that the engine weights that we provided in the add_XXX layer stay valid during the whole time of the builder. The pointer to the weights will only be deferenced during engine building and not just during the builder calls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels