MCPcopy Create free account
hub / github.com/CompVis/diff2flow / Timestep

Class Timestep

diff2flow/models/unet/openaimodel.py:416–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414
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)
423
424
425class UNetModel(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected