<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/experimental/nn/util/convolution_util.py#L94-L164) |

Computes indexes into a flattened image for building `im2row`.

    tfp.experimental.nn.util.im2row_index(
        input_shape,
        block_shape,
        rank=2,
        slice_step=(1, 1),
        dilations=(1, 1),
        dtype=tf.int32,
        transpose=False,
        validate_args=False,
        name=None
    )