jupyter python笔记杂乱

问题产生的原因: 无法执行sess.run()的原因是tensorflow版本不同导致的,tensorflow版本2.0无法兼容版本1.0
解决办法:
tf.compat.v1.disable_eager_execution()

确保tf’2能运行tf1的代码

notebok打开指定文件夹
直接解决
jupyter python笔记杂乱_第1张图片

你可能感兴趣的:(杂乱的Python,python,jupyter,笔记)