DimDomain
The extents one input dimension admits. A dimension the model fixed, or a compile pinned to one value, is Fixed (min == opt == max). A dynamic dimension compiled with a shape spec (CompileOptions.specs) is Range: min and max bound it, opt is the extent the graph specializes to. A dynamic dimension without a spec is Free and admits any non-negative extent; a traced graph's dynamic dimensions are Free.
kind (property)
Which description applies (a DimDomain.Kind).
max (property)
The largest admitted extent (Fixed, Range), else -1.
min (property)
The smallest admitted extent (Fixed, Range), else -1.
name (property)
The dimension's declared name (an ONNX dim_param), or ''.
opt (property)
The extent the compiled graph specializes to, else -1.
Kind
Kind(*values)
How a DimDomain describes its extents: Fixed, Range or Free.
__init__
__init____init__(self) -> None
init(self) -> None
admits
admitsadmits(self, extent: int) -> bool
admits(self, extent: int) -> bool
admits(extent) -> bool
True when extent is admitted: Fixed admits opt only, Range admits min <= extent <= max, Free admits any extent >= 0.