This commit is contained in:
Sumeth Sathnindu
2025-01-16 00:50:03 +05:30
committed by GitHub
parent 42345bda08
commit d001d4ae06
-7
View File
@@ -264,13 +264,6 @@ class TangoFluxVAEDecodeAndPlay:
try:
with torch.no_grad():
try:
print("Inducing OOM for testing...")
oom_tensor = torch.empty((1610612736,), dtype=torch.float32, device="cuda")
except torch.OutOfMemoryError:
print("OOM successfully induced for testing.")
raise torch.OutOfMemoryError
for latent in latents:
torch.cuda.empty_cache()