RAF: Holistic Compilation for Deep Learning Model Training