Table of Contents

Property FreeDimensionOverrides

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

FreeDimensionOverrides

Symbolic dimension name -> fixed value, applied with SessionOptions.AddFreeDimensionOverrideByName before the session is created. This is the ONLY mechanism that turns a graph's declared [batch_size, sequence_length] into static shapes, and therefore the only thing that makes RequireStaticInputShapes meaningful - padding the tensors fed at Run time does not, because CoreML partitions from the declared shapes at session creation. A session pinned this way serves exactly one shape: every batch is padded to it, and a second pinned shape would need a second session, which v1 does not do. Empty by default, so the default session is dynamic-shaped and CoreML partitions normally.

This is a DIFFERENT ORT API from SessionConfigEntries. The two are separate properties on purpose and are never merged.

public IDictionary<string, long> FreeDimensionOverrides { get; }

Property Value

IDictionary<string, long>