Skip to content

Commit 9eb0b8b

Browse files
hlkya-r-r-o-w
andauthored
Update src/diffusers/models/transformers/transformer_hidream_image.py
Co-authored-by: Aryan <[email protected]>
1 parent c1abec6 commit 9eb0b8b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/diffusers/models/transformers/transformer_hidream_image.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -652,12 +652,6 @@ def __init__(
652652
self.caption_projection = nn.ModuleList(caption_projection)
653653
self.max_seq = max_resolution[0] * max_resolution[1] // (patch_size * patch_size)
654654

655-
self.gradient_checkpointing = False
656-
657-
def _set_gradient_checkpointing(self, module, value=False):
658-
if hasattr(module, "gradient_checkpointing"):
659-
module.gradient_checkpointing = value
660-
661655
def expand_timesteps(self, timesteps, batch_size, device):
662656
if not torch.is_tensor(timesteps):
663657
is_mps = device.type == "mps"

0 commit comments

Comments
 (0)