GAT icon indicating copy to clipboard operation
GAT copied to clipboard

How can I change the "batch_size"

Open dengzx7 opened this issue 5 years ago • 5 comments

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

dengzx7 avatar Nov 17 '19 02:11 dengzx7

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。

liujian19911023 avatar Nov 20 '19 12:11 liujian19911023

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 avatar Nov 09 '20 13:11 tanjia123456

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

tanjia123456 avatar Nov 09 '20 13:11 tanjia123456

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

wenwen19980927 avatar Mar 17 '22 08:03 wenwen19980927

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

hazdzz avatar Mar 25 '22 02:03 hazdzz