Table of Contents

Constructor BundledOnnxModelSource

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

BundledOnnxModelSource(IEdgeModelPaths, Func<string, CancellationToken, ValueTask<Stream>>)

Creates the source.

public BundledOnnxModelSource(IEdgeModelPaths paths, Func<string, CancellationToken, ValueTask<Stream>> openAsset)

Parameters

paths IEdgeModelPaths

The model root.

openAsset Func<string, CancellationToken, ValueTask<Stream>>

Opens an app-package asset by its manifest-relative path. Throwing FileNotFoundException is how "this flavour does not bundle that model" is spelled; it becomes ModelAssetMissing.