Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

In K-Means Example, when i am running "from tensorflow.contrib.factorization import KMeans" line, i am getting an error "ModuleNotFoundError: No module named 'tensorflow.contrib'" #404

Open
mdabaig opened this issue Dec 30, 2021 · 2 comments

Comments

@mdabaig
Copy link

mdabaig commented Dec 30, 2021

No description provided.

@jiandandema
Copy link

jiandandema commented Dec 30, 2021 via email

@mdabaig
Copy link
Author

mdabaig commented Dec 30, 2021

from future import print_function

import numpy as np
import tensorflow as tf
from tensorflow.contrib.factorization import KMeans

Ignore all GPUs, tf random forest does not benefit from it.

import os
os.environ["CUDA_VISIBLE_DEVICES"] = ""


ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_15132/3974994213.py in
3 import numpy as np
4 import tensorflow as tf
----> 5 from tensorflow.contrib.factorization import KMeans
6
7 # Ignore all GPUs, tf random forest does not benefit from it.

ModuleNotFoundError: No module named 'tensorflow.contrib'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants