Error While Running Multiple Tensorflow Sessions In The Same Python Process
I have a project with this hierarchy: project ├── libs │ ├── __init__.py │ ├── sub_lib1 │ │ ├── file1.py │ │ └── __init__.py
Solution 1:
After reading some related posts in Stack Overflow, I found a solution in this answer from which I quote:
you might get errors during second build_graph() due to trying to create variables with the same names (what happens in your case), graph being finalised etc.
To solve my problem, I only needed to add tf.reset_default_graph()
to main.py in order to reset the graph and its parameters.
Post a Comment for "Error While Running Multiple Tensorflow Sessions In The Same Python Process"