def __init__(self, is_training, data_dir, batch_size=1024, use_bfloat16=False):
    self.image_preprocessing_fn = resnet_preprocessing.preprocess_image
    self.is_training = is_training
    self.data_dir = data_dir
    if ((self.data_dir == 'null') or (self.data_dir == '')):
        self.data_dir = None
    self.batch_size = batch_size
    self.use_bfloat16 = use_bfloat16
def __init__(self, is_training, data_dir, batch_size=1024, use_bfloat16=False):
    self.image_preprocessing_fn = resnet_preprocessing.preprocess_image
    self.is_training = is_training
    self.data_dir = data_dir
    if ((self.data_dir == 'null') or (self.data_dir == )):
        self.data_dir = None
    self.batch_size = batch_size
    self.use_bfloat16 = use_bfloat16