mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
fix regression in nn.py
propose fix for error : UnboundLocalError: local variable 'tf' referenced before assignment issue describe in : https://github.com/iperov/DeepFaceLab/issues/5436
This commit is contained in:
parent
292b562eb7
commit
9b568bc25e
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class nn():
|
|||
nn.tf_sess_config = config
|
||||
|
||||
if nn.tf_sess is None:
|
||||
nn.tf_sess = tf.Session(config=nn.tf_sess_config)
|
||||
nn.tf_sess = nn.tf.Session(config=nn.tf_sess_config)
|
||||
|
||||
if floatx == "float32":
|
||||
floatx = nn.tf.float32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue