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

warning that forward/backward mismatch #24

Open
maxwellzh opened this issue Aug 16, 2021 · 3 comments
Open

warning that forward/backward mismatch #24

maxwellzh opened this issue Aug 16, 2021 · 3 comments

Comments

@maxwellzh
Copy link
Contributor

The warning messages occasionally thrown out during training,

...
WARNING: sample 10 [81, 25] has a forward/backward mismatch -0.000083 / -0.000083
...
WARNING: sample 11 [62, 28] has a forward/backward mismatch -0.000188 / -0.000188

The source code makes the judgement of whether abs(a-b)/abs(max(a,b)) > 0.001.
I'm sorry that I have difficulty reading the core_gather.cu.
Could you explain more details about the function kernel_fill_costs() and alphas, betas?

@1ytic
Copy link
Owner

1ytic commented Aug 16, 2021

These variables comes from the classical forward/backward algorithm. alphas and betas must be equal with the small measurement errors. For some reason the values looks very small. Please check that you provide the right input data.

@maxwellzh
Copy link
Contributor Author

If this is error related to the input data, it should repeat every epoch in training, but at the beginning, no warning is thrown.
And as you can see, all the warnings are generated with small values, so I wonder whether if there is something that leads to under flow computation.

@1ytic
Copy link
Owner

1ytic commented Aug 16, 2021

I can't remember from my practice that these values was so small. Maybe we should add additional check not only for ratio, but also for abs value as well. Fell free to change this condition check and recompile the package from the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants