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

Method forward

sat/sgm/modules/diffusionmodules/openaimodel.py:1006–1008  ·  view source on GitHub ↗
(self, x, timesteps=None, context=None, y=None, **kwargs)

Source from the content-addressed store, hash-verified

1004
1005class NoTimeUNetModel(UNetModel):
1006 def forward(self, x, timesteps=None, context=None, y=None, **kwargs):
1007 timesteps = th.zeros_like(timesteps)
1008 return super().forward(x, timesteps, context, y, **kwargs)
1009
1010
1011class EncoderUNetModel(nn.Module):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected