We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1532d2 commit 16cca22Copy full SHA for 16cca22
src/diffusers/utils/testing_utils.py
@@ -1089,6 +1089,15 @@ def _is_torch_fp64_available(device):
1089
"xpu": torch.xpu.reset_peak_memory_stats,
1090
"default": None,
1091
}
1092
+ BACKEND_RESET_MAX_MEMORY_ALLOCATED = {
1093
+ "cuda": torch.cuda.reset_max_memory_allocated,
1094
+ "default": None,
1095
+ }
1096
+ BACKEND_MAX_MEMORY_ALLOCATED = {
1097
+ "cuda": torch.cuda.max_memory_allocated,
1098
+ "xpu": torch.xpu.max_memory_allocated,
1099
+ "default": 0,
1100
1101
1102
1103
# This dispatches a defined function according to the accelerator from the function definitions.
0 commit comments