mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +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)
|
||||
screen.log_title("Loading checkpoint: {}".format(checkpoint.model_checkpoint_path))
|
||||
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
|
||||
var = tf.contrib.framework.load_variable(checkpoint_dir, var_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user