Python class
CompiledModel
CompiledModel
class max.engine.CompiledModel(handle, expected_weights)
Bases: object
A compiled model artifact, ready for initialization with weights.
Returned by InferenceSession.compile(). Pass it to
InferenceSession.init() or InferenceSession.init_all() to
produce executable Model instances.
A CompiledModel is not directly executable: compilation is
independent of the device-memory allocations performed during
initialization, so a single artifact can be initialized more than once.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!