Dynamically extend the tensor

hmmm you can do this:
t2.data.resize_(t1.size()).copy_(t1)
or this
t2.data.resize_(t1.size()).copy_(t2)

but im not sure what do you mean by extending, because when the size change the values need to change too. so what do you want the elements of t2 to be?