mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
_
This commit is contained in:
parent
9b070e10a6
commit
4c24f9d41c
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def tf_gradients ( loss, vars ):
|
||||||
gv = [*zip(grads,vars)]
|
gv = [*zip(grads,vars)]
|
||||||
for g,v in gv:
|
for g,v in gv:
|
||||||
if g is None:
|
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
|
return gv
|
||||||
nn.gradients = tf_gradients
|
nn.gradients = tf_gradients
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue