Deep Learning With Effective Hierarchical Attention Mechanisms in Perception of Autonomous Vehicles