mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 19:50:17 +01:00
standardizing variable access
This commit is contained in:
@@ -479,7 +479,7 @@ class GraphManager(object):
|
|||||||
checkpoint = tf.train.get_checkpoint_state(checkpoint_dir)
|
checkpoint = tf.train.get_checkpoint_state(checkpoint_dir)
|
||||||
screen.log_title("Loading checkpoint: {}".format(checkpoint.model_checkpoint_path))
|
screen.log_title("Loading checkpoint: {}".format(checkpoint.model_checkpoint_path))
|
||||||
variables = {}
|
variables = {}
|
||||||
for var_name, _ in tf.contrib.framework.list_variables(self.task_parameters.checkpoint_restore_dir):
|
for var_name, _ in tf.contrib.framework.list_variables(checkpoint_dir):
|
||||||
# Load the variable
|
# Load the variable
|
||||||
var = tf.contrib.framework.load_variable(checkpoint_dir, var_name)
|
var = tf.contrib.framework.load_variable(checkpoint_dir, var_name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user