Sum of matrices with different dimensions
I am trying to sum two tensors with dimensions: 
a: 10 x 49 x 1024 
b: 10 x 1024 Thanks
lcelona
How do you want to add these matrices? They have different numbers of elements.
apaszke
Don’t hate me. In Tensorflow, the following code works: I’ll replace my code using the following: Correct?
lcelona
This should do it for you: <SCODE>c = a + b.unsqueeze(1).expand_as(a)
<ECODE>
apaszke
But your code would work too.
apaszke
Thank you for your help!
lcelona