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

How can I change the "batch_size" #38

Open
dengzx7 opened this issue Nov 17, 2019 · 5 comments
Open

How can I change the "batch_size" #38

dengzx7 opened this issue Nov 17, 2019 · 5 comments

Comments

@dengzx7
Copy link

dengzx7 commented Nov 17, 2019

I directly change the "batch_size" in file "execute_cora.py" from 1 to 10, and the following error occurred.

ValueError: Cannot feed value of shape (1, 2708, 1433) for Tensor 'input/Placeholder:0', which has shape '(10, 2708, 1433)'

So how can I change the "batch_size" when training or running the model ? Thx

@liujian19911023
Copy link

I directly change the "batch_size" in file "execute_cora.py" from 1 to 10, and the following error occurred.

ValueError: Cannot feed value of shape (1, 2708, 1433) for Tensor 'input/Placeholder:0', which has shape '(10, 2708, 1433)'

So how can I change the "batch_size" when training or running the model ? Thx

change placeholder batch_size to None,but this is not useful,every epoch the model use full data, not node level。when graph is very big, need the change code to support node level train。

@tanjia123456
Copy link

hello, do you know how to modify the value of the batch-size?
It seems can't change it in the layer.py
If you don't mind ,could you please share experience of it?

@tanjia123456
Copy link

hello, do you know how to modify the value of the batch-size? It seems can't change it in the layer.py
If you don't mind ,could you please share experience of it? This problem has been bothering me for a week, and I really can’t find a clue

@wenwen19980927
Copy link

hi, do you know how to modify the batch_size now? ^_^

@hazdzz
Copy link

hazdzz commented Mar 25, 2022

GAT is a full batch GNN model. If you require a mini-batch model, you need to graph sampling first.

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

5 participants