Yes, this is known. For that you need to follow sample_weights. The following tutorial demos one use-case:

  
      

      TensorFlow
  

  
    

Image segmentation  |  TensorFlow Core 1



  

  
    
    
  

  


Immense thanks to @markdaoust for providing this section.