Class FileOnnxModelSource
Files already on disk, in the model root or an explicit directory. AddOnnx registers this
one last, as the fallback every other source falls through to.
public sealed class FileOnnxModelSource : IOnnxModelSource
- Inheritance
-
FileOnnxModelSource
- Implements
- Inherited Members
Constructors
- FileOnnxModelSource(IEdgeModelPaths, string?)
Creates the source.
Properties
- Name
A short stable name, used in logs and in provisioning failures.
Methods
- CanProvide(OnnxModelManifest)
Whether this source could supply the manifest at all. Cheap and synchronous: it inspects the manifest, never the network.
- EnsureAsync(OnnxModelManifest, IProgress<ModelProvisioningProgress>?, CancellationToken)
Materialises every file into
<Models>/<modelId>/<sha16>, verifying each digest, and returns the resolved paths.