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

Method __init__

src/diffusers/models/embeddings.py:782–786  ·  view source on GitHub ↗
(self, in_features, hidden_size, num_tokens=120)

Source from the content-addressed store, hash-verified

780 """
781
782 def __init__(self, in_features, hidden_size, num_tokens=120):
783 super().__init__()
784 self.linear_1 = nn.Linear(in_features=in_features, out_features=hidden_size, bias=True)
785 self.act_1 = nn.GELU(approximate="tanh")
786 self.linear_2 = nn.Linear(in_features=hidden_size, out_features=hidden_size, bias=True)
787
788 def forward(self, caption):
789 hidden_states = self.linear_1(caption)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected