Method AddOnnx
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
builderEdgeBuilderThe Qavren.Edge builder.
configureAction<OnnxOptions>Optional OnnxOptions configuration.
Returns
- EdgeBuilder
The same builder.