Hi, thank you for help!! This could work, but instead of this one line code, can I split them to different lines?
w1 = w.repeat(1,2)
x1 = x.repeat(1,2)
y = w1*x1

Since w has .requires_grad set to True, Pytorch document indicates w1 will also has .requires_grad set to True. Will this change the network topology or increase the number parameters?