MCPcopy Create free account
hub / github.com/AlayaLab/Hive / __init__

Method __init__

models/flowsep/diffusers/models/embeddings.py:410–415  ·  view source on GitHub ↗
(self, encoder_dim: int, time_embed_dim: int, num_heads: int = 64)

Source from the content-addressed store, hash-verified

408
409class TextTimeEmbedding(nn.Module):
410 def __init__(self, encoder_dim: int, time_embed_dim: int, num_heads: int = 64):
411 super().__init__()
412 self.norm1 = nn.LayerNorm(encoder_dim)
413 self.pool = AttentionPooling(num_heads, encoder_dim)
414 self.proj = nn.Linear(encoder_dim, time_embed_dim)
415 self.norm2 = nn.LayerNorm(time_embed_dim)
416
417 def forward(self, hidden_states):
418 hidden_states = self.norm1(hidden_states)

Callers

nothing calls this directly

Calls 2

AttentionPoolingClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected