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

Method forward

diff2flow/models/unet/openaimodel.py:83–91  ·  view source on GitHub ↗
(self, x, emb, context=None)

Source from the content-addressed store, hash-verified

81 """
82
83 def forward(self, x, emb, context=None):
84 for layer in self:
85 if isinstance(layer, TimestepBlock):
86 x = layer(x, emb)
87 elif isinstance(layer, SpatialTransformer):
88 x = layer(x, context)
89 else:
90 x = layer(x)
91 return x
92
93
94class Upsample(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected