MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / Timestep

Class Timestep

sat/sgm/modules/diffusionmodules/openaimodel.py:485–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483
484
485class Timestep(nn.Module):
486 def __init__(self, dim):
487 super().__init__()
488 self.dim = dim
489
490 def forward(self, t):
491 return timestep_embedding(t, self.dim)
492
493
494str_to_dtype = {"fp32": th.float32, "fp16": th.float16, "bf16": th.bfloat16}

Callers 2

_build_modulesMethod · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected