- tensorstore.IndexTransform(*, json: Any)
Constructs an index transform from its
JSON representation
.Examples
>>> ts.IndexTransform( ... json={ ... "input_inclusive_min": ["-inf", 7, ["-inf"], [8]], ... "input_exclusive_max": ["+inf", 11, ["+inf"], [17]], ... "input_labels": ["x", "y", "z", ""], ... "output": [ ... { ... "offset": 3 ... }, ... { ... "stride": 2, ... "input_dimension": 2 ... }, ... { ... "offset": 7, ... "index_array": [[[[1]], [[2]], [[3]], [[4]]]], ... "index_array_bounds": [1, 4] ... }, ... ], ... }) Rank 4 -> 3 index space transform: Input domain: 0: (-inf, +inf) "x" 1: [7, 11) "y" 2: (-inf*, +inf*) "z" 3: [8*, 17*) Output index maps: out[0] = 3 out[1] = 0 + 2 * in[2] out[2] = 7 + 1 * bounded([1, 5), array(in)), where array = {{{{1}}, {{2}}, {{3}}, {{4}}}}