Efficient Memory Management for GPU-based Deep Learning Systems