MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / TimestepBlock

Class TimestepBlock

src/diffusion/unet_triplane.py:148–157  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

146
147
148class TimestepBlock(nn.Module):
149 """
150 Any module where forward() takes timestep embeddings as a second argument.
151 """
152
153 @abstractmethod
154 def forward(self, x, emb):
155 """
156 Apply the module to `x` given `emb` timestep embeddings.
157 """
158
159
160class TimestepEmbedSequential(nn.Sequential, TimestepBlock):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected