MCPcopy Create free account
hub / github.com/CompVis/zigma / __init__

Method __init__

model_zigma.py:237–245  ·  view source on GitHub ↗
(self, hidden_size, dtype, frequency_embedding_size=256)

Source from the content-addressed store, hash-verified

235 """
236
237 def __init__(self, hidden_size, dtype, frequency_embedding_size=256):
238 super().__init__()
239 self.mlp = nn.Sequential(
240 nn.Linear(frequency_embedding_size, hidden_size, bias=True),
241 nn.SiLU(),
242 nn.Linear(hidden_size, hidden_size, bias=True),
243 )
244 self.dtype = dtype
245 self.frequency_embedding_size = frequency_embedding_size
246
247 @staticmethod
248 def timestep_embedding(t, dim, dtype, max_period=10000):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected