Property RequireStaticInputShapes
RequireStaticInputShapes
Emits RequireStaticInputShapes=1. Default false, and that is load-bearing.
CoreML partitions the graph at SESSION-CREATION time from the graph's DECLARED shapes, not
from the shapes fed at Run time. All four presets declare
input_ids/attention_mask/token_type_ids as
[batch_size, sequence_length] - symbolic. Setting this to 1 against symbolic dims
means CoreML takes few or no nodes and the whole graph silently falls back to CPU, which
Accepted cannot detect. Turning it on is therefore
only correct together with FreeDimensionOverrides (or
OnnxEmbeddingOptions.PinnedSequenceLength, which sets both), and the session factory
refuses the combination without them.
public bool RequireStaticInputShapes { get; set; }