MCPcopy Index your code
hub / github.com/huggingface/diffusers / training_utils.py

File training_utils.py

src/diffusers/training_utils.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import contextlib
2import copy
3import gc
4import math

Callers

nothing calls this directly

Calls 5

is_accelerate_availableFunction · 0.85
is_peft_availableFunction · 0.85
is_torchvision_availableFunction · 0.85
is_torch_npu_availableFunction · 0.85

Tested by

no test coverage detected