 to the safety_checker`.


Function invoked when calling the pipeline for generation.

Examples:


	Copied
>>> from diffusers import VersatileDiffusionPipeline
>>> import torch

>>> pipe = VersatileDiffusionPipeline.from_pretrained(
...     "shi-labs/versatile-diffusion", torch_dtype=torch.float16
... )
>>> pipe = pipe.to("cuda")

>>> generator = torch.Generator(device="cuda").manual_seed(0)
>>> image = pipe.text_to_image("an astronaut riding o