-
tensorstore.Dim(size: int | None, label: str | None =
None, *, inclusive_min: int | None =None, implicit_lower: bool =False, implicit_upper: bool | None =None) Constructs a sized interval
[inclusive_min, inclusive_min+size).- Parameters:¶
- size: int | None¶
Size of the interval.
- label: str | None =
None¶ - inclusive_min: int | None =
None¶ Inclusive lower bound. Defaults to
0.- implicit_lower: bool =
False¶ Indicates whether the lower bound is implicit.
- implicit_upper: bool | None =
None¶ Indicates whether the upper bound is implicit. Defaults to
Falseifsizeis specified, otherwiseTrue.
Examples
>>> x = ts.Dim(10) >>> print(x) [0, 10) >>> print(ts.Dim(inclusive_min=5, size=10)) [5, 15)