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

About Build_dataset and NaN Loss #4

Open
foureye opened this issue Dec 21, 2023 · 1 comment
Open

About Build_dataset and NaN Loss #4

foureye opened this issue Dec 21, 2023 · 1 comment

Comments

@foureye
Copy link

foureye commented Dec 21, 2023

Q1:"mooc data, rand_feat = np.zeros((max_idx + 1, 172)), 172 need change to 4",I found shape of edge_feature and node_feature will be [12344,4],[4849,4],then in feat_process_layer,i meet RuntimeError: mat1 and mat2 shapes cannot be multiplied (4849x4 and 172x128)。Do i need to change the dim of feat_process_layer when processing mooc?

Q2: I meet NaN in loss when training,”if torch.any(torch.isnan(log_probs)): raise ValueError("Log_prob has nan!")“
I change learning rate from 5e-4 to 1e-6 solve the problem in wikipedia,but I still meet NaN in reddit dataset.
Do I need to keep turn dowm learning rate,or check logits/log_pros/sim_coeff?

Thank you!

@000096
Copy link

000096 commented Aug 22, 2024

请问您第一个问题解决了么

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