This commit is contained in:
Colombo 2020-01-26 12:56:21 +04:00
parent 76ca79216e
commit c485e1718a
4 changed files with 10 additions and 22 deletions

View file

@ -35,7 +35,7 @@ def initialize_tensor_ops(nn):
gv = [*zip(grads,vars)]
for g,v in gv:
if g is None:
raise Exception("No gradient for variable {v.name}")
raise Exception(f"No gradient for variable {v.name}")
return gv
nn.tf_gradients = tf_gradients