Closed fmassa closed 8 years ago
Whoa, nice spot :-O That works perfectly :-) That would have taken me forever to find. I thought it was a bug in my network modules, and would have spent hours digging out wondering why hacking around in the network modules wasnt fixing anything :-D
Thank you very much. Awesome! :-)
Great ! Glad I could be helpful ! :)
Follow up on the bug mentioned on https://github.com/szagoruyko/cifar.torch/pull/17#issuecomment-210494811
The bug with
clearState
is in here I think. Compare it to the cutorch version. Basically in torch, if we calltensor:set()
(without arguments) it frees the storage oftensor
. In your case you only free it if the provided argument has non-null storage.