当前位置:网站首页>TensorFlow: NameError: name 'input_data' is not defined
TensorFlow: NameError: name 'input_data' is not defined
2022-08-09 10:45:00 【qq_26391203】
xueli1991's blog
In the tutorial of the TensorFlow Chinese documentation, the section on Getting Started with MNIST Machine Learning starts with the code for down load mnist dataset
import tensorflow.examples.tutorials.mnist.input_datamnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)
Direct copy operation will report an error, NameError: name 'input_data' is not defined
Should be changed to the following code:
import tensorflow.examples.tutorials.mnist.input_data as input_datamnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)
边栏推荐
- 用Word写代码
- Pyhton实战汇总篇
- 笔记本电脑使用常见问题,持续更新
- LM小型可编程控制器软件(基于CoDeSys)笔记二十六:plc的数据存储区(模拟量输入通道部分)
- unix环境编程 第十五章 15.10 POSIX信号量
- How to quickly get through the mirror release process?
- 解决1.tensorflow运行使用CPU不使用GPU 2.tensorflow环境下的GPU版本号 3.tensorflow和cuda以及cudnn版本对应问题 4.查看cuda和cudnn版本
- Win32控件--------------------WM_DRAWITEM消息测试程序
- 1004 成绩排名 (20 分)
- Win32控件------------显示系统使用的控件版本
猜你喜欢
类与对象 (下)
人物 | 从程序员到架构师,我是如何快速成长的?
使用cpolar远程连接群晖NAS(创建临时链接)
自从我使用HiFlow场景连接器后,在也不用担心成为“落汤鸡”了
Electron application development best practices
Transformer+Embedding+Self-Attention原理详解
非科班毕业生,五面阿里:四轮技术面+HR一面已拿offer
商业技术解决方案与高阶技术专题 - 数据可视化专题
shell脚本实战(第2版)/人民邮电出版社 脚本2 验证输入:仅限字母和数字
深度学习--生成对抗网络(Generative Adversarial Nets)
随机推荐
torch.cat()函数的官方解释,详解以及例子
Received your first five-figure salary
按键精灵之输出文本
机器学习--线性回归(Linear Regression)
OpenGL 2.0编程例子
通过Doc在MySQL数据库中建表
OpenGL ES2.0编程三部曲(转载自MyArrow)
ESIM(Enhanced Sequential Inference Model)- 模型详解
好久没上博客了,好长时间没有进展了
[Original] Usage of @PrePersist and @PreUpdate in JPA
相关系数计算,热力图绘制,代码实现
RTP
stimulus.js 初体验
Transformer+Embedding+Self-Attention原理详解
Win32控件------------显示系统使用的控件版本
上传张最近做的E2用的xmms的界面的截图
unix环境编程 第十五章 15.8信号量
1005 继续(3n+1)猜想 (25 分)
强化学习 (Reinforcement Learning)
xmms的歌词显示及音量控制OK