Meet error while running following command: python train_student.py --exp_setting ind --teacher "SAGE" --student "MLP" --dataset "ogbn-products" --num_exp 10 --max_epoch 200 --patience 30 --device 0 --device 1
File "/data/zhou/NOSMOG-master/train_student.py", line 468, in run
position_feature_obs[idx_cur_node_id] = torch.tensor(temp_position_feature, dtype=torch.float32)
IndexError: index 2396430 is out of bounds for dimension 0 with size 2006411
It looks like the code try to access unobserved test_ind idx in a tensor where only observed idx are contained.
Meet error while running following command: python train_student.py --exp_setting ind --teacher "SAGE" --student "MLP" --dataset "ogbn-products" --num_exp 10 --max_epoch 200 --patience 30 --device 0 --device 1
File "/data/zhou/NOSMOG-master/train_student.py", line 468, in run position_feature_obs[idx_cur_node_id] = torch.tensor(temp_position_feature, dtype=torch.float32) IndexError: index 2396430 is out of bounds for dimension 0 with size 2006411
It looks like the code try to access unobserved test_ind idx in a tensor where only observed idx are contained.