I’m transferring a matrices addition code from Tensorflow to Pytorch. The matrices shapes are (1,25,256) and (1,1,256). On Tensorflow it works but on Pytorch I get the error:
RuntimeError: inconsistent tensor size
I know that the shapes doesn’t match but this code works on Tensorflow and I wonder if it can work on Pytorch as well.