Dataflow Restructuring for Active Memory Reduction in Deep Neural Networks