MCPcopy Create free account
hub / github.com/huggingface/diffusers / __call__

Method __call__

tests/hooks/test_group_offloading.py:137–140  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

135 self.register_modules(model=model)
136
137 def __call__(self, x: torch.Tensor) -> torch.Tensor:
138 for _ in range(2):
139 x = x + 0.1 * self.model(x)
140 return x
141
142
143class LayerOutputTrackerHook(ModelHook):

Callers

nothing calls this directly

Calls 1

modelMethod · 0.45

Tested by

no test coverage detected