Skip to main content

load_model

Function load_model 

Source
pub fn load_model<B: ModelLoadingBackend>(
    backend: &B,
    artifact: impl AsRef<Path>,
    options: B::LoadOptions,
) -> Result<PreparedModel<B::Model>, ModelLoadError<B::Error>>
Expand description

Inspects, plans, and prepares one artifact on the selected backend.

This is the sole generic artifact-loading entry point. The backend instance already owns its device, execution queues, transfer queues, and optional distributed communication state; none are passed separately to loading.