We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688031c commit b35bac4Copy full SHA for b35bac4
src/diffusers/pipelines/stable_diffusion/safety_checker.py
@@ -79,7 +79,7 @@ def forward(self, clip_input, images):
79
80
return images, has_nsfw_concepts
81
82
- @torch.inference_mode()
+ @torch.no_grad()
83
def forward_onnx(self, clip_input: torch.FloatTensor, images: torch.FloatTensor):
84
pooled_output = self.vision_model(clip_input)[1] # pooled_output
85
image_embeds = self.visual_projection(pooled_output)
0 commit comments