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
Chapter 11, Part 1: TextVectorization with output_mode="tf_idf" #190
Comments
I was wrong with Google Colab. The same error occurs even on Google Colab. |
I think I found the main reason for the confusion. Whether the error occurs depends on the GPU support.
|
Hello, I've observed the same error on GPU only: in cell with code from Listing 11.11 (training new model with TF-IDF bigram model) System information
You can collect some of this information using our environment capture
Describe the current behavior Error message:
see full log below Describe the expected behavior
Standalone code to reproduce the issue Other info / logs Include any logs or source code that would be helpful to
|
I just ran into similar issues running on Google Colab with a GPU. Stacktrace:
|
I just stumbled over the same problem when trying to run the code in a Jupyter lab notebook on a Jetson Nano (TF 2.7) I managed to get it to work there by specifying CPU as the device for the with tf.device("cpu"):
text_vectorization.adapt(text_only_train_ds) |
YES!!! I have received your E-mail——Steven Lee
|
The 24th code cell raises the following error when it runs on a PC using Anaconda(Python 3.8.5 + Tensorflow 2.6 or 2.7) while it runs well on Google Colab.
When the output_mode is not "tf_idf", then everything is ok. The error occurred first with TF 2.6, but it continues to happen even with TF 2.7.
The python environment is as follows:
OS: Windows 11 (no WSL2)
Anaconda + TF 2.6 or 2.7
I am wondering WHY!
Many thanks in advance for any help.
The text was updated successfully, but these errors were encountered: