dtype and torch.device, then it is returned as is. Otherwise,
the returned pipeline is a copy of self with the desired torch.dtype and torch.device. Here are the ways to call to: to(dtype, silence_dtype_warnings=False) → DiffusionPipeline to return a pipeline with the specified
dtype to(device, silence_dtype_warnings=False) → DiffusionPipeline to return a pipeline with the specified
device to(device=None, dtype=None, silence_dtype_warnings=Fals