# Path: settings.py
# FLAGS = flags.FLAGS
# 
# Path: utils/helpers.py
# def get_iter_from_pretrained_model(checkpoint_file_name):
#   ''' extracts the iterator count of a dumped checkpoint from the checkpoint file name
#   :param checkpoint_file_name: name of checkpoint file - must contain a
#   :return: iterator number
#   '''
#   file_basename = os.path.basename(checkpoint_file_name)
#   assert re.compile('[A-Za-z0-9]+[-][0-9]+').match(file_basename)
#   idx = re.findall(r'-\b\d+\b', file_basename)[0][1:]
#   return int(idx)
# 
# def remove_items_from_dict(string_dict, strings_to_remove):
#   result_dict = {}
#   for v_name, v in string_dict.items():
#     if not any([(s in v_name) for s in strings_to_remove]):
#       result_dict[v_name] = v
#   return result_dict


import tensorflow as tf
from settings import FLAGS
from utils.helpers import get_iter_from_pretrained_model, remove_items_from_dict

class Initializer:
  def __init__(self):
    self.status = False
    self.sess = None

# Path: settings.py
# FLAGS = flags.FLAGS
# 
# Path: utils/helpers.py
# def get_iter_from_pretrained_model(checkpoint_file_name):
#   ''' extracts the iterator count of a dumped checkpoint from the checkpoint file name
#   :param checkpoint_file_name: name of checkpoint file - must contain a
#   :return: iterator number
#   '''
#   file_basename = os.path.basename(checkpoint_file_name)
#   assert re.compile('[A-Za-z0-9]+[-][0-9]+').match(file_basename)
#   idx = re.findall(r'-\b\d+\b', file_basename)[0][1:]
#   return int(idx)
# 
# def remove_items_from_dict(string_dict, strings_to_remove):
#   result_dict = {}
#   for v_name, v in string_dict.items():
#     if not any([(s in v_name) for s in strings_to_remove]):
#       result_dict[v_name] = v
#   return result_dict


# Path: core/Initializer.py
import tensorflow as tf
from settings import FLAGS
from utils.helpers import get_iter_from_pretrained_model, remove_items_from_dict


class Initializer:
  def __init__(self):
    self.status = False
    self.sess = None

    self.threads = None