Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 6, 2024
1 parent e594647 commit 405dd24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def forward(
)

if attention_mask is None:
attention_mask = torch.ones(input_ids.shape).to(input_ids.device)
attention_mask = torch.ones(input_ids.shape, device=input_ids.device)

has_missing_labels = (
spectrogram_labels is None or duration_labels is None or pitch_labels is None or energy_labels is None
Expand Down

0 comments on commit 405dd24

Please sign in to comment.