-
Notifications
You must be signed in to change notification settings - Fork 697
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
Tensorflow eager mode dose not work when GPU is enabled in google colab #262
Comments
Unfortunately, I tried again and the issue is not resolved. I did not have such a problem two days ago, it seems something goes wrong recently |
Yep, this is a bug (which will only happen with GPUs) -- to work around it for now, reset all runtimes, and then run
before any TF-using code, and you should be unblocked. |
Yes, It works. |
FTR fix is now live, this should be working without the custom env var (after possibly restarting any runtimes). |
I tried the @craigcitro 's solution of importing the os module. But it still gives me an error saying module 'tensorflow' has no attribute 'enable_eager_execution'. |
@ParasharaRamesh Can you file a separate issue for what you're hitting? |
Yes please. Everything in that r2/ directory is updates in progress for tf2.0. That Can you raise an issue on tensorflow/tensorflow, and cc me on it? |
@MarkDaoust I was able to get past that issue by doing the following:
|
recently I have faced this problem.
when I want to use GPU as the accelerator in google collab, the eager mode won't work and when I try to enable the eager mode even at the beginning of the program it gives me the error:
ValueError: tf.enable_eager_execution must be called at program startup.
while when the GPU is not used the eager mode can be activated and be used successfully in google collab
The text was updated successfully, but these errors were encountered: