Efficient Deep Learning Using Non-Volatile Memory Technology