- tensorstore.IndexTransform.__getitem__(self, expr: DimExpression) IndexTransform
Applies a dimension expression to this transform.
Example
>>> transform = ts.IndexTransform(input_rank=3) >>> transform[ts.d[0, 1].label['x', 'y'].translate_by[5]] Rank 3 -> 3 index space transform: Input domain: 0: (-inf*, +inf*) "x" 1: (-inf*, +inf*) "y" 2: (-inf*, +inf*) Output index maps: out[0] = -5 + 1 * in[0] out[1] = -5 + 1 * in[1] out[2] = 0 + 1 * in[2]