def _set_or_add_hparam(hparams, name, value):
    if (getattr(hparams, name, None) is None):
        hparams.add_hparam(name, value)
    else:
        hparams.set_hparam(name, value)
def _set_or_add_hparam(hparams, name, value):
    if (getattr(hparams, name, None) is None):
        hparams.add_hparam(name, value)
    else:
        hparams.set_hparam(name, value)