---
title: "DimDomain"
sidebar_label: "DimDomain"
description: "The clika_runtime.graph DimDomain class."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

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`

```python
Kind(value, names=None, *, module=None, qualname=None, type=None, start=1)
```

How a DimDomain describes its extents: Fixed, Range or Free.

## `__init__`

```python
__init____init__(self) -> None
```

__init__(self) -> None

## `admits`

```python
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.
