Method CanProvide
CanProvide(OnnxModelManifest)
Whether this source could supply the manifest at all. Cheap and synchronous: it inspects the manifest, never the network.
public bool CanProvide(OnnxModelManifest manifest)
Parameters
manifestOnnxModelManifestThe manifest to consider.
Returns
- bool
True when this source is worth asking.
Remarks
Always true. An asset stream has no length and no path, so the only way to learn whether an asset exists is to open it - which is work, and belongs in EnsureAsync(OnnxModelManifest, IProgress<ModelProvisioningProgress>?, CancellationToken).