On a related note, here’s a tutorial that shows the use of RandAugment from TensorFlow Model Garden, thereby allowing for faster training with TPUs (since it is implemented using native TF ops):

  
      

      keras.io
  

  
    

Keras documentation: Consistency Training with Supervision 22