Table of Contents

Method AddOnnxModel

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

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

builder EdgeBuilder

The Qavren.Edge builder.

manifest OnnxModelManifest

The manifest.

configure Action<OnnxSessionOptions>

Optional per-model session settings.

Returns

EdgeBuilder

The same builder.