当前位置:网站首页>Tensorflow2 installation quick pit avoidance summary
Tensorflow2 installation quick pit avoidance summary
2022-07-25 13:51:00 【Tobi_ Obito】
Preface
I thought I had found a safe TF2 The installation process (conda python/cudatoolkit/cudnn + pip tf2), I didn't expect that after the successful installation import individual Adam All wrong -_-||. Therefore, this blog post records and summarizes the problems experienced .
Fast pit avoidance
Situation 1
The installation was completed successfully , but import Basic components ( Such as tensorflow.keras.optimizer.Adam) Times wrong
Solution
After installation , Check (conda list command ) Is there an independent Keras library : If you have any , Make sure it's connected with tensorflow Versions, .
If it's not the same , Then uninstall and reinstall keras library :
pip uninstall keras
pip install kears==2.x.0 # And tensorflow Same version
Problem analysis
stay Tensorflow2 in keras It has been integrated in tensorflow in , But part of the source code is still from keras The method of directly calling the Library :
from keras. A module import A component
However , The fact proved that , Although independent keras The library is installed tensorflow Installed as a dependent Library in the process of , But the version does not match tensorflow Unified , It's all kinds of “ No, it shouldn't be ” Reasons for reporting errors .
More cases will be added after the treatment ...
边栏推荐
- [configure hifive1 revb] the device manager does not recognize the port, and can not connect to j-link via USB
- Brush questions - Luogu -p1047 trees outside the school gate
- Applet sharing function
- Nodejs link MySQL error: Er_ NOT_ SUPPORTED_ AUTH_ MODEError: ER_ NOT_ SUPPORTED_ AUTH_ MODE
- 2022全球开发者中,你的收入排多少?
- 【配置Hifive1-revB】设备管理器中不识别端口,Can not connect to J-Link via USB的解决办法
- What should I do if the high-level MySQL server cannot be installed and I forget the password (MySQL 8.0.29)?
- mysql 01: source命令
- Preparing for the soft test for junior programmers in the second half of 2022
- LabVIEW的内部错误
猜你喜欢

Leetcode -- addition of four numbers II

leetcode--四数相加II

ES6 array de duplication new set()

MXNet对DenseNet(稠密连接网络)的实现
Congestion control of TCP

Workplace "digital people" don't eat or sleep 007 work system, can you "roll" them?

飞盘局有多快乐?2022年轻人新潮运动报告

Audio and video technology development weekly | 255

ADB connects to Xiaomi mobile phone via Wi Fi

Leetcode202 --- Happy number
随机推荐
Mujoco+spinningup for intensive learning training quick start
Applet enterprise red envelope function
Brush questions - Luogu -p1085 unhappy Jinjin
Mxnet implementation of densenet (dense connection network)
Uncaught SyntaxError: Octal literals are not allowed in strict mode.
HTTP cache tongtianpian, there may be something you want
Nodejs link MySQL error: Er_ NOT_ SUPPORTED_ AUTH_ MODEError: ER_ NOT_ SUPPORTED_ AUTH_ MODE
leetcode--四数相加II
Package management apt, dpkg
wangeditor 富文本编辑器
What are the ranking strategies for mobile websites, independent apps and websites?
G027-op-ins-rhel-04 RedHat openstack creates a customized qcow2 format image
Azure Devops (XIV) use azure's private nuget warehouse
Brush questions - Luogu -p1059 clear random number
Framework package merge script
Internal error of LabVIEW
What problems should SEOER pay attention to when baidu searches and attacks pirated websites?
Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)
职场「数字人」不吃不睡007工作制,你「卷」得过它们吗?
Leetcode1 -- sum of two numbers