mengcz13 / KDD2021_CNFGNN

Official PyTorch implementation of "Cross-Node Federated Graph Neural Network for Spatio-Temporal Modeling".
66 stars 9 forks source link

TypeError: 'NoneType' object is not subscriptable #5

Open clianchen opened 2 years ago

clianchen commented 2 years ago

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?

lky-violet commented 11 months ago

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