chore: add new argument to overridden method to match new signature upstream

This commit is contained in:
Kevin Turner 2023-03-09 17:34:41 -08:00
parent 081397737b
commit faa2558e2f

View File

@ -440,7 +440,7 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
"""
self._model_group.ready()
def to(self, torch_device: Optional[Union[str, torch.device]] = None):
def to(self, torch_device: Optional[Union[str, torch.device]] = None, silence_dtype_warnings=False):
# overridden method; types match the superclass.
if torch_device is None:
return self