(namespace, var_names, training, polyak_decay)
return vars
utility for retrieving polyak averaged params
utility for retrieving polyak averaged params
utility for retrieving polyak averaged params
def get_vars_maybe_avg(namespace, var_names, training, polyak_decay):
    """ utility for retrieving polyak averaged params """
    vars = []
    for vn in var_names:
        vars.append(get_var_maybe_avg(
            namespace, vn, training, polyak_decay))
    return vars
def get_vars_maybe_avg ( namespace , var_names , training , polyak_decay ) : vars = [ ] for vn in var_names : vars . append ( get_var_maybe_avg ( namespace , vn , training , polyak_decay ) ) return vars