<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/augment.py#L83-L89) |

Converts a 4D image back to `ndims` rank.

    tfm.vision.augment.from_4d(
        image: tf.Tensor, ndims: tf.Tensor
    ) -> tf.Tensor