From f425085e0a8e5af8714bbff7fa1a6f9a59acbb10 Mon Sep 17 00:00:00 2001 From: Dong Yan Date: Tue, 9 Jan 2018 21:16:35 +0800 Subject: [PATCH] fix the tf assign error of copy the trained variable from black to white --- AlphaGo/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AlphaGo/model.py b/AlphaGo/model.py index 7741eb6..670837d 100644 --- a/AlphaGo/model.py +++ b/AlphaGo/model.py @@ -122,7 +122,7 @@ class ResNet(object): print('Successfully loaded') else: raise ValueError("No model in path {}".format(white_checkpoint_path)) - self.update = [tf.assign(black_params, white_params) for black_params, white_params in + self.update = [tf.assign(white_params, black_params) for black_params, white_params in zip(self.black_var_list, self.white_var_list)] # training hyper-parameters: