# Utilities

Utility and helper functions for working with 🤗 Diffusers.

## randn_tensor

[[autodoc]] diffusers.utils.randn_tensor

## numpy_to_pil

[[autodoc]] utils.pil_utils.numpy_to_pil

## pt_to_pil

[[autodoc]] utils.pil_utils.pt_to_pil

## load_image

[[autodoc]] utils.testing_utils.load_image

## export_to_gif

[[autodoc]] utils.testing_utils.export_to_gif

## export_to_video

[[autodoc]] utils.testing_utils.export_to_video

## make_image_grid

[[autodoc]] utils.pil_utils.make_image_grid