MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/diffusionmodules/model.py:856–861  ·  view source on GitHub ↗
(self, x, scale_factor=1.0)

Source from the content-addressed store, hash-verified

854 padding=1)
855
856 def forward(self, x, scale_factor=1.0):
857 if scale_factor==1.0:
858 return x
859 else:
860 x = torch.nn.functional.interpolate(x, mode=self.mode, align_corners=False, scale_factor=scale_factor)
861 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected