MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / callback_fn

Method callback_fn

diffusers/src/diffusers/callbacks.py:39–40  ·  view source on GitHub ↗
(self, pipeline, step_index, timesteps, callback_kwargs)

Source from the content-addressed store, hash-verified

37 raise NotImplementedError(f"You need to set the attribute `tensor_inputs` for {self.__class__}")
38
39 def callback_fn(self, pipeline, step_index, timesteps, callback_kwargs) -> Dict[str, Any]:
40 raise NotImplementedError(f"You need to implement the method `callback_fn` for {self.__class__}")
41
42 def __call__(self, pipeline, step_index, timestep, callback_kwargs) -> Dict[str, Any]:
43 return self.callback_fn(pipeline, step_index, timestep, callback_kwargs)

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected