Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects #899

Open
Test-Jim opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@Test-Jim
Copy link

Test-Jim commented May 9, 2024

I used flask, and then called the interface. No error was reported the first time, but this error will definitely be reported the second time I called it.

Exception ignored in: <generator object Estimator.predict at 0x000001C3F2AF6AB0>
Traceback (most recent call last):
File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 618, in predict
with tf.Graph().as_default() as g:
File "C:\Users\admin123\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow\python\framework\ops.py", line 5821, in get_controller
with super(_DefaultGraphStack,
File "C:\Users\admin123\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\admin123\PycharmProjects\sd_flask.venv\lib\site-packages\tensorflow\python\framework\ops.py", line 5633, in get_controller
raise AssertionError(
AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects

@Test-Jim Test-Jim added bug Something isn't working invalid This doesn't seem right labels May 9, 2024
@Test-Jim Test-Jim changed the title [Bug] name your bug AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant