From 3487f299dfc4ca751f1a1922ee82e73a0e6f961a Mon Sep 17 00:00:00 2001 From: Ali Raza Date: Wed, 3 Oct 2018 02:43:10 +0500 Subject: [PATCH] Fix Bug When I tried to run the model I was having the error: TypeError: can only concatenate list (not "dict_values") to list. by changing self.metrics.values() with list(self.metrics.values()) the error removed. And the model start running. --- tf_base_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf_base_model.py b/tf_base_model.py index b9e87bb8..08cb7e80 100644 --- a/tf_base_model.py +++ b/tf_base_model.py @@ -160,7 +160,7 @@ def fit(self): val_feed_dict.update({self.is_training: False}) results = self.session.run( - fetches=[self.loss] + self.metrics.values(), + fetches=[self.loss] + list(self.metrics.values()), feed_dict=val_feed_dict ) val_loss = results[0]