-
Notifications
You must be signed in to change notification settings - Fork 74k
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
[XLA] ResourceExhaustedError when trying to define a Sequential model in Keras under jit_scope context manager #21638
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
It has been 30 days with no activity and the |
This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks! |
How is this not a bug? In the trace it shows that it tries to allocate 0 bytes and fails, which is strange, and surely not a problem on my side of the code. The problem might be on Keras side tho, but I am not sure. |
Hi @AlexandruBurlacu |
Quick update I was able to run the script successfully in version TF 1.8 as well. |
Interesting, I will check it again and come back with the results on my side. Thank you anyway! |
Intel i5-2430M, 6 GB RAM
Linux Ubuntu 16.04 | Python 3.6.5 | Bazel 0.16.0 | GCC 5.4.0
TensorFlow 1.8 compiled from source with MKL and XLA support
So, my issue is that I try to use XLA for CPU via Keras that is embedded in TensorFlow 1.8 using the
tf.contrib.compiler.jit.experimental_jit_scope
(for CPU it's the only way I know to enable XLA, usingConfigProto
doesn't work on CPU for me). For some strange reason I am thrownResourceExhaustedError
when trying to allocate 0 bytes. Looks like something's wrong, either in TensorFlow or Keras. Below is the listing of the code I use and the full trace.Code
Traceback
The text was updated successfully, but these errors were encountered: