tensorstore.IndexTransform.ndim : int

Rank of the input space, alias for input_rank.

Example

>>> transform = ts.IndexTransform(input_shape=[3, 4, 5],
...                               input_labels=["x", "y", "z"])
>>> transform.ndim
3