Closed ProfDoof closed 2 years ago
@ProfDoof,
By default colab uses python 3.7, So I installed python 3.10 with tensorflow 2.10 and tensorflow_hub 0.12.0 and executed the provided snippet.
I was unable to reproduce the error mentioned and got the encoded vector from USE successfully. Please find attach gist.
Could you please try reinstalling the tensorflow build and run the same code to see if the issue persists?
Thank you!
I have already tried forcing a reinstall of the tensorflow build. Is it possible that it's caused by my having a GPU or something?
https://discuss.tensorflow.org/t/how-to-solve-tensorflow-jit-compile-error/3707
Hey maybe this can be of help to you
I saw that but it's not my model so I'm not sure I can do anything about it.
I have already tried forcing a reinstall of the tensorflow build. Is it possible that it's caused by my having a GPU or something?
GPU should not be a problem as such.
Lol, well then I don't know what the issue is. I will try it again as soon as I get home. I'm just getting done with a dentist appointment 😂
Figured it out. For some godforsaken reason, I was setting CUDA_DIR to the correct location but I kept getting this error "error: Can't find libdevice directory ${CUDA_DIR}/nvvm/libdevice" which turns out is because I had to do "export XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/lib/cuda-11.2" instead.
Now, I'm not sure why this is the case and it would be greatly appreciated if someone could point me in the direction of the right people to bug with this bug to get it fixed but that's the close of this bug here for me.
What happened?
System Info: Web App: Google CoLab Jupyter Runtime: Local Jupyter Notebook running on Python 3.10 Tensorflow Version: 2.10.0
I'm trying to use the model from tfhub.dev/google/universal-sentence-encoder/4 for embedding sentences to use for multiple downstream tasks. While trying to do the embedding process with my local runtime, I ran into a JIT compilation error.
It is as follows
I expected this to just work but I may have a misunderstanding of how the models are expected to be used.
Relevant code
Relevant log output
tensorflow_hub Version
0.12.0 (latest stable release)
TensorFlow Version
other (please specify)
Other libraries
tensorflow==2.10.0
Full pip freeze dump can be found here pip freeze dump on hatebin
Python Version
3.x
OS
Linux