DocProduct
DocProduct copied to clipboard
ImportError: cannot import name 'dense_features'
Unable to import the package. The solution seems to be to update the tf but then its throwing an error that the DocProduct doesn't support tf==2.1
Failed to load GPU Faiss: No module named 'faiss.swigfaiss_gpu' Faiss falling back to CPU-only.
ImportError Traceback (most recent call last)
8 frames
/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/canned/dnn.py in
ImportError: cannot import name 'dense_features'
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
faiss is seperate from Tensorflow, did you double check to make sure it's being installed ok?
@Santosh-Gupta Yes I did install the updated version. Still unable to run the colab? Do you by any chance happen to have a step by step instruction to run the notebook? That would be really helpful. Thank you
It should run by executing the cells in order. Which notebook are you trying, there were a couple in the readme.
I was able to run the model that just retrieves a sentence. Even that had some dependency issues. But I am unable to run the notebook that uses gpt2
ahh, that's @ash3n 's , maybe he can give some insight.
If we don't hear from him, I recommend switching over to the huggingface transformers library, it is much better supported