mvgrl icon indicating copy to clipboard operation
mvgrl copied to clipboard

Little confusion in reading the code

Open Andrewsama opened this issue 3 years ago • 0 comments

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.

Andrewsama avatar Apr 05 '21 14:04 Andrewsama