def create_hyperparameters()

in benchmarks/tf_benchmarks/execute_tensorflow_training.py [0:0]


def create_hyperparameters(model_dir, script_args):
    job_hps = _DEFAULT_HYPERPARAMETERS.copy()

    job_hps.update({"train_dir": model_dir, "eval_dir": model_dir})

    script_arg_keys_without_dashes = [
        key[2:] if key.startswith("--") else key[1:] for key in script_args[::2]
    ]
    script_arg_values = script_args[1::2]
    job_hps.update(dict(zip(script_arg_keys_without_dashes, script_arg_values)))

    return job_hps