Skip to content

Commit fdef40b

Browse files
committed
Woops
1 parent fe691fe commit fdef40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/schedulers/scheduling_vq_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def index_to_log_onehot(x: torch.LongTensor, num_classes: int) -> torch.FloatTen
5353
Log onehot vectors
5454
"""
5555
batch_size, vector_length = x.shape
56-
log_x = torch.FloatTensor((batch_size, num_classes, vector_length), fill_value=1e-30, device=x.device)
56+
log_x = torch.full((batch_size, num_classes, vector_length), fill_value=1e-30, dtype=torch.float, device=x.device)
5757
log_x.scatter_(index=x[:, None, :], src=0, dim=1)
5858
return log_x
5959

0 commit comments

Comments
 (0)