Attentions are used to focus on specific features rather than giving importance to all the features. The convolutional network gives out large number of features and some of those features are not so important information but they also consume computation time when passed forward. Here in this case we use attention networks to assign more importance to useful features in which we are interested.
Here are some blogs which might help you!

  
      
      Medium – 25 Sep 19
  
  
    

Self-Attention In Computer Vision 261

Using the attention mechanism as the building block in computer vision models

  Reading time: 10 min read
    

  
  
    
    
  
  



  
      
      Medium – 10 Aug 19
  
  
    

Learn to Pay Attention! Trainable Visual Attention in CNNs 162

When training an image model, we want the model to be able to focus on important parts of the image. One way of accomplishing this is…

  Reading time: 11 min read