From 4c24f9d41c09d0fc6791ec04c16496053662f969 Mon Sep 17 00:00:00 2001 From: Colombo Date: Thu, 19 Mar 2020 13:29:33 +0400 Subject: [PATCH] _ --- core/leras/ops/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/leras/ops/__init__.py b/core/leras/ops/__init__.py index 4931488..dac2992 100644 --- a/core/leras/ops/__init__.py +++ b/core/leras/ops/__init__.py @@ -56,7 +56,7 @@ def tf_gradients ( loss, vars ): gv = [*zip(grads,vars)] for g,v in gv: if g is None: - raise Exception(f"No gradient for variable {v.name}") + raise Exception(f"Variable {v.name} is declared as trainable, but no tensors flow through it.") return gv nn.gradients = tf_gradients