Tensor of data.y printed to be of [128] size but why when reshaping it warns me RuntimeError: shape '[1, 128]' is invalid for input of size 28? #6168
-
I was using GFN from<> on PYG. And this model is quite weird. It seems composed of MLP instead of layers of graphconv and passes messages by using global_mean_pool, global_add_pool, and batch normalization. And my experience needs to use its data.y, which prints to be a Tensor with [128] size, the same as its batch size. But it warns me that 127 is too large for its size which is 28. So I tried to figure out what was going on and in the train_eval code I wrote the following code to see if it means in this PyTorch version I can't get items on a one dimension Tensor by using '[]' tag:
And it warned me this
It's so weird, what could be the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Can you claridy what you mean by GFN? How does that model look like? |
Beta Was this translation helpful? Give feedback.
Can you claridy what you mean by GFN? How does that model look like?