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

Little confusion in reading the code #10

Open
Andrewsama opened this issue Apr 5, 2021 · 0 comments
Open

Little confusion in reading the code #10

Andrewsama opened this issue Apr 5, 2021 · 0 comments

Comments

@Andrewsama
Copy link

Hello,
Thanks for your work which help me receive some inspiration.
I'm confused when I read the code. I can't understand the code " batch = torch.LongTensor( np.repeat( np.arange( batch.shape[0]), max_nodes)).cuda()" on 'mvgrl/train.py' in line 272. I am more inclined to the code like " batch = torch.LongTensor( np.repeat( batch, max_nodes)).cuda()". Maybe I'm not thoughtful, I truly want your help, thx.

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

1 participant