Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TTS]Avoid using variable "attn_loss" before assignment #2860

Merged
merged 2 commits into from Feb 2, 2023

Conversation

hopingZ
Copy link
Contributor

@hopingZ hopingZ commented Jan 31, 2023

PR types

PR changes

Describe

@CLAassistant
Copy link

CLAassistant commented Jan 31, 2023

CLA assistant check
All committers have signed the CLA.

@@ -113,16 +113,18 @@ def update_core(self, batch):
loss.backward()
optimizer.step()

if self.use_guided_attn_loss:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job ! Maybe you should also fix this for class Tacotron2Evaluator

@yt605155624 yt605155624 added this to the r1.4.0 milestone Jan 31, 2023
@yt605155624 yt605155624 changed the title Avoid using variable "attn_loss" before assignment [TTS]Avoid using variable "attn_loss" before assignment Jan 31, 2023
@@ -113,16 +113,18 @@ def update_core(self, batch):
loss.backward()
optimizer.step()

if self.use_guided_attn_loss:
report("eval/attn_loss", float(attn_loss))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be train/attn_loss here

@yt605155624
Copy link
Collaborator

yt605155624 commented Feb 2, 2023

I have directly pushed to your branch to fix some bugs @hopingZ

Copy link
Collaborator

@yt605155624 yt605155624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yt605155624 yt605155624 merged commit c764710 into PaddlePaddle:develop Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants