Skip to content

Use all generated autocxx methods for all the types #19

@theHamsta

Description

@theHamsta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions