1、ValueError: Your machine has only 0 gpus which is less than the requested --num_gpus=1.
python3 ptb_word_lm.py --data_path=/Users/Arithmetic/PycharmProjects/Jia/leetcode/tf-test/simple-examples/data --model=small --rnn_mode=basic --num_gpus=0
2、ImportError: cannot import name 'dense_features' from 'tensorflow.python.feature_column'
pip3 uninstall tensorflow_estimator
pip3 install tensorflow_estimator
本文解决在使用TensorFlow时遇到的两个常见错误:一是请求的GPU数量超过可用GPU导致的ValueError;二是因tensorflow_estimator包问题引起的ImportError。通过调整参数和重新安装特定包,可以有效解决这些问题。
1620

被折叠的 条评论
为什么被折叠?



