import tensorflow as tf

    self.resnet_size = resnet_size

    if not data_format:
      data_format = (
          'channels_first' if tf.test.is_built_with_cuda() else 'channels_last')
      data_format = "channels_last" #ki: added to make cpu runnable model

    self.resnet_version = resnet_version
