How to do repeat operation like numpy.repeat in pytorch on Variable like tensor?

http://pytorch.org/docs/search.html?q=expand&check_keywords=yes&area=default

Is this what you are looking for?

You may want to copy() it after that if you actually need to change 7x7 panes independently.

1 Like