Table of Contents

Interface IModelProvider

Namespace
InferenceEngine.Core.ModelProviders
Assembly
InferenceEngine.Core.dll

Abstraction for model acquisition. Implementations can load models from local files, download from URLs, fetch from cloud storage, etc.

public interface IModelProvider

Methods

GetModelPathAsync(CancellationToken)

Gets the local path to the model file. Implementations should ensure the model is available at the returned path (downloading if necessary) before returning.

Task<string> GetModelPathAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token for the operation

Returns

Task<string>

Absolute path to the .onnx model file