I am recently trying to port Facebook babi simulator written in torch into pytorch
According to their MeMnet code, it has a line "nn.Replicate(1,3)(u)"
Now I understand what nn.Replicate(3)(x) means, since it is clearly noted in tutorial.
But what does nn.Replicate(1,3) means? Can someone show its meaning with an example?
Pytorch equivalent code (without legacy code) will be great.
Thanks first.