def add_trainable_vars_summary(variables, name_prefix="", name_suffix="",
                               collection_key=None):

    # Add histograms for trainable variables.
    summ = []
    for var in variables:
        summ_name = format_scope_name(var.op.name, name_prefix, name_suffix)
        summ_exists = summary_exists(summ_name)
        if summ_exists is not None:
            tf.add_to_collection(collection_key, summ_exists)
            summ.append(summ_exists)
        else:
            summ.append(get_summary("histogram", summ_name, var, collection_key))
    return summ
add_trainable_vars_summary.
dataset/ETHPy150Open tflearn/tflearn/tflearn/summaries.py/add_trainable_vars_summary