neuralconvo icon indicating copy to clipboard operation
neuralconvo copied to clipboard

model:getParameters() used multiple times

Open nabihach opened this issue 8 years ago • 0 comments

For the function model:getParameters(), here's what the documentation (https://github.com/torch/nn/blob/master/doc/module.md#flatparameters-flatgradparameters-getparameters) says:

Since the storage of every weight and gradWeight is changed, this function should be called only once on a given network.

However, in train.lua, this function gets called once every epoch. I'm not entirely sure how this affects the model or the results though. In any case, just putting this out there.

nabihach avatar Sep 22 '16 14:09 nabihach