Compute and backpropagate error loss and complexity loss separately
Compute and backpropagate error loss and complexity loss separately

Before this change, complexity loss functions were memory-constrained,
since storing computation graphs for activations uses nearly all
available memory. This competition for memory is totally unnecessary;
complexity loss can be computed and backpropagated after this
computation graph has been freed.

subutai/nupic.research,mrcslws/nupic.research,numenta/nupic.research,mrcslws/nupic.research,numenta/nupic.research,subutai/nupic.research