Attention-aware Semantic Communications for Collaborative Inference