Constructor BundledOnnxModelSource
BundledOnnxModelSource(IEdgeModelPaths, Func<string, CancellationToken, ValueTask<Stream>>)
Creates the source.
public BundledOnnxModelSource(IEdgeModelPaths paths, Func<string, CancellationToken, ValueTask<Stream>> openAsset)
Parameters
pathsIEdgeModelPathsThe model root.
openAssetFunc<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.