MCPcopy Index your code
hub / github.com/CompVis/diff2flow / __init__

Method __init__

diff2flow/models/unet/openaimodel.py:417–419  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

415
416class Timestep(nn.Module):
417 def __init__(self, dim):
418 super().__init__()
419 self.dim = dim
420
421 def forward(self, t):
422 return timestep_embedding(t, self.dim)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected