A Comparison of Deep Learning Frameworks