Method AddOnnxModel
AddOnnxModel(EdgeBuilder, OnnxModelManifest, Action<OnnxSessionOptions>?)
Declares a model. Provisioning and session creation stay lazy: nothing is fetched and no
session is created until the first IOnnxSessionHost.AcquireAsync.
public static EdgeBuilder AddOnnxModel(this EdgeBuilder builder, OnnxModelManifest manifest, Action<OnnxSessionOptions>? configure = null)
Parameters
builderEdgeBuilderThe Qavren.Edge builder.
manifestOnnxModelManifestThe manifest.
configureAction<OnnxSessionOptions>Optional per-model session settings.
Returns
- EdgeBuilder
The same builder.