MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / TimestepBlock

Class TimestepBlock

code/dc_ldm/modules/diffusionmodules/openaimodel.py:64–73  ·  view source on GitHub ↗

Any module where forward() takes timestep embeddings as a second argument.

Source from the content-addressed store, hash-verified

62
63
64class TimestepBlock(nn.Module):
65 """
66 Any module where forward() takes timestep embeddings as a second argument.
67 """
68
69 @abstractmethod
70 def forward(self, x, emb):
71 """
72 Apply the module to `x` given `emb` timestep embeddings.
73 """
74
75
76class TimestepEmbedSequential(nn.Sequential, TimestepBlock):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected