Another question, so say if I wanted to collect the gradients of a DCG and want to keep a single list of tensors to reflect all parameters in the network as it trains, how would I go about that? Should I make a new weight matrix and bias vector each time a layer changes shape or would I extend the matrix and bias at the existing layer to accommodate the new dimensions? Similarly if the layer shrinks, should I create a new matrix or only modify a subset of those parameters in my running list of tensors? Thanks.