MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / forward

Method forward

src/diffusers/models/attention.py:668–675  ·  view source on GitHub ↗
(self, hidden_states: torch.Tensor, scale: float = 1.0)

Source from the content-addressed store, hash-verified

666 self.net.append(nn.Dropout(dropout))
667
668 def forward(self, hidden_states: torch.Tensor, scale: float = 1.0) -> torch.Tensor:
669 compatible_cls = (GEGLU,) if USE_PEFT_BACKEND else (GEGLU, LoRACompatibleLinear)
670 for module in self.net:
671 if isinstance(module, compatible_cls):
672 hidden_states = module(hidden_states, scale)
673 else:
674 hidden_states = module(hidden_states)
675 return hidden_states

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected