SmartFRZ: An Efficient Training Framework using Attention-Based Layer Freezing