'Loads options from the given model directory.
Args:
model_dir: Path to the model directory.'

@staticmethod
def load(model_dir):

    with gfile.GFile(TrainOptions.path(model_dir), u'rb') as file:
        options_dict = json.loads(file.read().decode(u'utf-8'))
    options_dict = defaultdict(None, options_dict)
    return TrainOptions(model_class=options_dict[u'model_class'], model_params=options_dict[u'model_params'])
