class_docstr: Definition of an ImageNetPolicy.
  
  Implements a fixed AutoAugment data augmentation policy targeted at
  ImageNet training by randomly applying at runtime one of the 25 pre-defined
  data augmentation sub-policies provided in Reference [1].
  
  Usage example as a Pytorch Transform:
  >>> transform=transforms.Compose([transforms.Resize(256),
  >>>                               ImageNetPolicy(),
  >>>                               transforms.ToTensor()])
class_docstr_tok: ["Definition","of","an","ImageNetPolicy",".","Implements","a","fixed","AutoAugment","data","augmentation","policy","targeted","at","ImageNet","training","by","randomly","applying","at","runtime","one","of","the","25","pre-defined","data","augmentation","sub-policies","provided","in","Reference","[","1","]",".","Usage","example","as","a","Pytorch","Transform",":",">",">",">","transform=transforms.Compose","(","[","transforms.Resize","(","256",")",",",">",">",">","ImageNetPolicy","(",")",",",">",">",">","transforms.ToTensor","(",")","]",")"]
docstr: Define repr method for ImageNetPolicy class.
docstr_tok: ["Define","repr","method","for","ImageNetPolicy","class","."]
code: def __repr__(self):
      """Define repr method for ImageNetPolicy class."""
      return "ImageNetPolicy"
  
file_path: megatron-lm/megatron/data/autoaugment.py
imports: import random
  import numpy
  from PIL import Image
  from PIL import ImageEnhance
  from PIL import ImageOps
label_desc: Use image node_id 3 for calling the ImageNetPolicy obj's underlying member method code with example usage: obj.__repr__() and returns: str