visDial.pytorch icon indicating copy to clipboard operation
visDial.pytorch copied to clipboard

Why define the Variable before start training ?

Open SamuelQZQ opened this issue 7 years ago • 0 comments

I have noticed that, in your 'train_*.py' scipt, you always define the Variable before start training. And in every training step, you use Tensor.resize_() method and Tensor.copy_() method to prepare the Variable.

I am curious about it. What is the advantage of this trick ? Is this a trick to make the training faster ? Thank you !

SamuelQZQ avatar Dec 05 '17 12:12 SamuelQZQ