Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not subscriptable #5

Open
clianchen opened this issue Dec 28, 2021 · 1 comment
Open

TypeError: 'NoneType' object is not subscriptable #5

clianchen opened this issue Dec 28, 2021 · 1 comment

Comments

@clianchen
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants