You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following three lines give an error: "RuntimeError: Default session has been garbage collected." One line above the line that raises the RuntimeError, there's a comment saying "This should never happen with the current session implementations." Clearly, it did happen. The situation doesn't bother me greatly, and I'm only mentioning this because clearly something unintended happened here.
import tensorflow as tf
with tf.Session().as_default():
tf.get_default_session()
The following four lines do not give the error:
import tensorflow as tf
sess = tf.Session()
with sess.as_default():
tf.get_default_session()
This suggests that the Session.as_default() method doesn't store in any way that keeps it from being garbage collected.
NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.
For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
None.
Environment info
Operating System:
Mac OS X 10.11.6
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):
None.
If installed from binary pip package, provide:
A link to the pip package you installed: I don't recall the link; I installed following the standard installation instructions.
The output from python -c "import tensorflow; print(tensorflow.__version__)".
0.10.0rc0
If installed from source, provide
The commit hash (git rev-parse HEAD)
The output of bazel version
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
See above.
What other attempted solutions have you tried?
See above.
Logs or other output that would be helpful
(If logs are large, please upload as attachment or provide link).
The text was updated successfully, but these errors were encountered:
The following three lines give an error: "RuntimeError: Default session has been garbage collected." One line above the line that raises the RuntimeError, there's a comment saying "This should never happen with the current session implementations." Clearly, it did happen. The situation doesn't bother me greatly, and I'm only mentioning this because clearly something unintended happened here.
import tensorflow as tf
with tf.Session().as_default():
tf.get_default_session()
The following four lines do not give the error:
import tensorflow as tf
sess = tf.Session()
with sess.as_default():
tf.get_default_session()
This suggests that the Session.as_default() method doesn't store in any way that keeps it from being garbage collected.
NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.
For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
None.
Environment info
Operating System:
Mac OS X 10.11.6
Installed version of CUDA and cuDNN:
(please attach the output of
ls -l /path/to/cuda/lib/libcud*
):None.
If installed from binary pip package, provide:
python -c "import tensorflow; print(tensorflow.__version__)"
.0.10.0rc0
If installed from source, provide
git rev-parse HEAD
)bazel version
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
See above.
What other attempted solutions have you tried?
See above.
Logs or other output that would be helpful
(If logs are large, please upload as attachment or provide link).
The text was updated successfully, but these errors were encountered: