http://pytorch.org/docs/search.html?q=expand&check_keywords=yes&area=default 2.3k
Is this what you are looking for?
You may want to copy() it after that if you actually need to change 7x7 panes independently.