def sg_init ( sess ) : # initialize variables sess . run ( tf . group ( tf . global_variables_initializer ( ) , tf . local_variables_initializer ( ) ) )
python tensorflow tf global variables initializer
r Initializes session variables . Args : sess : Session to initialize .
def sg_init(sess):
    r""" Initializes session variables.
    
    Args:
      sess: Session to initialize. 
    """
    # initialize variables
    sess.run(tf.group(tf.global_variables_initializer(),
                      tf.local_variables_initializer()))