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

UnboundLocalError: local variable 'alpha_mask' referenced before assignment #192

Open
HuizhiXu opened this issue May 15, 2024 · 2 comments

Comments

@HuizhiXu
Copy link

When executing self.model.plot(), an error occurs:
UnboundLocalError: local variable 'alpha_mask' referenced before assignment.

Upon inspection of the code, it indicates that when the necessary conditions are not met, the alpha_mask remains undefined.

截屏2024-05-15 14 31 27

@KindXiaoming
Copy link
Owner

Hi, what is the value of symbol_mask and numerical_mask in your case?

@HuizhiXu
Copy link
Author

Hi, we have finally reproduced the error. We run 30 steps and call the plot function after each training step. The error occurs during the process: when the training error suddenly becomes NaN, the next step is to plot, and then the error occurs. At this point, both the values of symbol_mask and numerical_mask are NaN.

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