

def get_value(var, session=None):
    " get_value.\n\n    Get a variable's value. If no session provided, use default one.\n\n    Arguments:\n        var: `Variable`. The variable to get value from.\n        session: `Session`. The session to run the op. Default: the default\n            session.\n\n    Returns:\n        The variable's value.\n\n    "
    if (not session):
        session = tf.get_default_session()
    return session.eval(session)

dataset/ETHPy150Open tflearn/tflearn/tflearn/variables.py get_value/VarMisuse@34/155 `var`->`session`