latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
Constraint
- class tensorplay.export.Constraint(source: Any, dim: int, name: str | None = None, min: int | None = None, max: int | None = None, warn_only: bool = False, root: str | None = None, scale: int = 1, offset: int = 0)[source]
A range restriction attached to one input dimension.
nameties the constraint to a namedDimshared across inputs (equalities are implied).root/scale/offsetdescribe a derived dimension whose size equalsscale * root_size + offset. Constraints without anamecome from dim hints or static entries.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

