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

I get ValueError: ('No loss to back propagate.') while training TRNN #20

Open
Marzie00Abd opened this issue May 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Marzie00Abd
Copy link

hi
I get the same error using different datasets.
any advice?

@LYH-YF
Copy link
Owner

LYH-YF commented May 8, 2022

TRNN has two stages to generate. if the equation is [n0 + n1 - n2 ]
first generate template, like [n0 <op> n1 <op> n2], <op> is unkown operator token. the label of this stage is [n0 <op> n1 <op> n2] while training.
second generate operaters from [n0 <op> n1 <op> n2], so the label is [+ , -]

the error maybe occur in second stage i think. if equation is like [n0], without any operator. that means there is no forward propagate while second stage, then you won't get the loss.
but it hanppens when the whole batch sample has no operator to predict.

i should consider fixing this bug,the model doesn‘t forward propagate in second stage then shouldn't back propagate and
second module shouldn't update parameters

@LYH-YF LYH-YF added the bug Something isn't working label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants