mirror of
https://github.com/malarinv/tacotron2
synced 2026-03-08 09:42:34 +00:00
model.py: removing .item
This commit is contained in:
2
model.py
2
model.py
@@ -471,7 +471,7 @@ class Tacotron2(nn.Module):
|
|||||||
output_lengths = batch
|
output_lengths = batch
|
||||||
text_padded = to_gpu(text_padded).long()
|
text_padded = to_gpu(text_padded).long()
|
||||||
input_lengths = to_gpu(input_lengths).long()
|
input_lengths = to_gpu(input_lengths).long()
|
||||||
max_len = torch.max(input_lengths.data).item()
|
max_len = torch.max(input_lengths.data)
|
||||||
mel_padded = to_gpu(mel_padded).float()
|
mel_padded = to_gpu(mel_padded).float()
|
||||||
gate_padded = to_gpu(gate_padded).float()
|
gate_padded = to_gpu(gate_padded).float()
|
||||||
output_lengths = to_gpu(output_lengths).long()
|
output_lengths = to_gpu(output_lengths).long()
|
||||||
|
|||||||
Reference in New Issue
Block a user