Skip to content

Commit 251ade1

Browse files
authored
Apply suggestions from code review
1 parent c60c72e commit 251ade1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/diffusers/models/embeddings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ def get_1d_sincos_pos_embed_from_grid(embed_dim, pos, output_type="np"):
334334
" `from_numpy` is no longer required."
335335
" Pass `output_type='pt' to use the new version now."
336336
)
337-
# TODO: Needs to be handled or errors out. Updated to 0.34.0 so that the benchmark code
338-
# runs without issues, but this should be handled properly before merge.
339337
deprecate("output_type=='np'", "0.34.0", deprecation_message, standard_warn=False)
340338
return get_1d_sincos_pos_embed_from_grid_np(embed_dim=embed_dim, pos=pos)
341339
if embed_dim % 2 != 0:

src/diffusers/pipelines/latte/pipeline_latte.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def __call__(
858858

859859
self._current_timestep = None
860860

861-
if output_type == "latent":
861+
if output_type == "latents":
862862
deprecation_message = (
863863
"Passing `output_type='latents'` is deprecated. Please pass `output_type='latent'` instead."
864864
)

0 commit comments

Comments
 (0)