tensorflow_mri.unravel_index
tensorflow_mri.unravel_index¶
- unravel_index(indices, dims)[source]¶
Converts an array of flat indices into an array of multi-indices.
- Parameters
indices – A
Tensorof shape[...]containing flat indices into anN-dimensional tensor.dims – A
Tensorof shape[N]. The shape of the tensor thatindicesindexes into.
- Returns
A
Tensorof shape[..., N]containing multi-indices equivalent to flat indices.