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 #4

Closed clianchen closed 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 are set according to the document. How can I solve this problem?