

def set_value(var, value, session=None):
    " get_value.\n\n    Set a variable's value. If no session provided, use default one.\n\n    Arguments:\n        var: `Variable`. The variable to assign a value.\n        value: The value to assign. Must be compatible with variable dtype.\n        session: `Session`. The session to perform the assignation.\n            Default: the default session.\n\n    "
    op = tf.assign(op, value=value)
    if (not session):
        session = tf.get_default_session()
    return op.eval(session)

dataset/ETHPy150Open tflearn/tflearn/tflearn/variables.py set_value/VarMisuse@24/152 `var`->`op`