https://hgpu.org/?p=23900
Memory Optimization for Deep Networks