Since the storage of every weight and gradWeight is changed, this function should be called only once on a given network.
params,gradParams = model:getParameters()
--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.
Could you explain why is it ok ?
Based on the documentation you shouldnt call it twice with the same model.
You received this message because you are subscribed to a topic in the Google Groups "torch7" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/torch7/bqbvIKjG4PU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to torch7+un...@googlegroups.com.