removed + chars

silly mistake copy pasting
This commit is contained in:
mittimithai 2020-05-12 15:23:45 -07:00 committed by GitHub
parent 85a822e319
commit a4aca623c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ class Synthesizer(object):
print(sens)
speaker_id = id_to_torch(speaker_id)
+ if speaker_id is not None and self.use_cuda:
+ speaker_id = speaker_id.cuda()
if speaker_id is not None and self.use_cuda:
speaker_id = speaker_id.cuda()
for sen in sens:
# preprocess the given text