Interface IOnnxModelSource
One way of getting a model's files onto the device. Sources are probed in registration order
and every one of them is contractually required to produce a real filesystem path, even on
Android where an app-package asset is a pathless AssetManager stream: spec 9.1 creates
sessions from paths, never from byte arrays.
public interface IOnnxModelSource
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.