1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-10-24 20:59:27 +03:00
Files
diffusers/docs/source/en/api/utilities.md
Dhruv Nair acbabca385 Consolidate torch device backend dispatch (#14792)
* introduce TorchDeviceBackend

* update

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2026-10-01 13:41:30 +05:30

1.3 KiB

Utilities

Utility and helper functions for working with 🤗 Diffusers.

numpy_to_pil

autodoc utils.numpy_to_pil

pt_to_pil

autodoc utils.pt_to_pil

load_image

autodoc utils.load_image

load_video

autodoc utils.load_video

export_to_gif

autodoc utils.export_to_gif

export_to_video

autodoc utils.export_to_video

encode_video

autodoc utils.encode_video

make_image_grid

autodoc utils.make_image_grid

randn_tensor

autodoc utils.torch_utils.randn_tensor

TorchDeviceBackend

autodoc utils.torch_utils.TorchDeviceBackend

apply_layerwise_casting

autodoc hooks.layerwise_casting.apply_layerwise_casting

apply_group_offloading

autodoc hooks.group_offloading.apply_group_offloading