torch / nngraph

Graph Computation for nn
Other
299 stars 96 forks source link

clearState() on gModule with moduleFromCriterion does not behave as expected #136

Open vivanov879 opened 7 years ago

vivanov879 commented 7 years ago

linking to the original issue https://github.com/torch/torch7/issues/767

Calling clearState on a graph with a moduleFromCriterion for serialization causes future invocations to forward/backward to fail. For example for ClassNLLCriterion