Table of Contents

Method AddOnnx

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

AddOnnx(EdgeBuilder, Action<OnnxOptions>?)

Idempotent. Registers IEdgeModelPaths, IEdgeResourceMonitor, the model store, the session host, FileOnnxModelSource as the fallback source, the OrtEnv startup task (order 200), the lifecycle observer and the diagnostics contributor. Calling it twice registers one of each.

public static EdgeBuilder AddOnnx(this EdgeBuilder builder, Action<OnnxOptions>? configure = null)

Parameters

builder EdgeBuilder

The Qavren.Edge builder.

configure Action<OnnxOptions>

Optional OnnxOptions configuration.

Returns

EdgeBuilder

The same builder.