Skip to content

Commit 8c8ada4

Browse files
committed
chore: update type hint
1 parent 3667b3b commit 8c8ada4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/training_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def compute_density_for_timestep_sampling(
253253
logit_mean: float = None,
254254
logit_std: float = None,
255255
mode_scale: float = None,
256-
device: torch.device = "cpu",
256+
device: torch.device | str = "cpu",
257257
generator: Optional[torch.Generator] = None,
258258
):
259259
"""

0 commit comments

Comments
 (0)