(self, pipeline, step_index, timesteps, callback_kwargs)
| 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) |