From fa183025acbe68a49d185d4edbd88d7afc6e5af1 Mon Sep 17 00:00:00 2001 From: Ryan Dick Date: Wed, 12 Jun 2024 17:55:33 -0400 Subject: [PATCH] Remove unused are_like_tensors() function. --- invokeai/backend/stable_diffusion/diffusers_pipeline.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/invokeai/backend/stable_diffusion/diffusers_pipeline.py b/invokeai/backend/stable_diffusion/diffusers_pipeline.py index 23b48b28f3..ebe078b31d 100644 --- a/invokeai/backend/stable_diffusion/diffusers_pipeline.py +++ b/invokeai/backend/stable_diffusion/diffusers_pipeline.py @@ -72,10 +72,6 @@ class AddsMaskLatents: return model_input -def are_like_tensors(a: torch.Tensor, b: object) -> bool: - return isinstance(b, torch.Tensor) and (a.size() == b.size()) - - @dataclass class AddsMaskGuidance: mask: torch.Tensor