tfm.vision.preprocess_ops_3d.resize_smallest

Resizes frames so that min(height, width) is equal to min_resize.

This function will not do anything if the min(height, width) is already equal to min_resize. This allows to save compute time.

frames A Tensor of dimension [timesteps, input_h, input_w, channels].
min_resize Minimum size of the final image dimensions.

A Tensor of shape [timesteps, output_h, output_w, channels] of type frames.dtype where min(output_h, output_w) = min_resize.