KDD2021_CNFGNN icon indicating copy to clipboard operation
KDD2021_CNFGNN copied to clipboard

TypeError: 'NoneType' object is not subscriptable

Open clianchen opened this issue 3 years ago • 1 comments

File "D:\KDD_CNFGNN\models\base_models\GraphNets.py", line 128, in forward u = x.new_zeros(*([batch[-1] + 1] + list(x.shape[1:-1]) + [self.global_input_size])) TypeError: 'NoneType' object is not subscriptable

hi, mr.Meng. i run your code but i found this problem, and all parameters have been set according to the document. How can I solve this problem?

clianchen avatar Dec 28 '21 10:12 clianchen

他的batch是nonetype,所以需要检查下有没有用到他之前Batch.from_data_list,但是我认为即使加上也是存在问题的

lky-violet avatar Dec 11 '23 08:12 lky-violet