Table of Contents

Method CanProvide

Namespace
Qavren.Edge.Onnx
Assembly
Qavren.Edge.Onnx.dll

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

manifest OnnxModelManifest

The 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).