linoyts HF staff commited on
Commit
41667f9
1 Parent(s): ecc78e5

Update clip_slider_pipeline.py

Browse files
Files changed (1) hide show
  1. clip_slider_pipeline.py +1 -1
clip_slider_pipeline.py CHANGED
@@ -239,7 +239,7 @@ class CLIPSliderXL(CLIPSlider):
239
  toks.to(text_encoder.device),
240
  output_hidden_states=True,
241
  )
242
-
243
  # We are only ALWAYS interested in the pooled output of the final text encoder
244
  pooled_prompt_embeds = prompt_embeds[0]
245
  prompt_embeds = prompt_embeds.hidden_states[-2]
 
239
  toks.to(text_encoder.device),
240
  output_hidden_states=True,
241
  )
242
+ print("prompt_embeds.dtype",prompt_embeds.dtype)
243
  # We are only ALWAYS interested in the pooled output of the final text encoder
244
  pooled_prompt_embeds = prompt_embeds[0]
245
  prompt_embeds = prompt_embeds.hidden_states[-2]