当前位置:网站首页>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)
边栏推荐
- 工作--今天的学习
- 【原创】JPA中@PrePersist和@PreUpdate的用法
- 1005 继续(3n+1)猜想 (25 分)
- 【原创】解决阿里云oss-browser.exe双击没反应打不开,提供一种解决方案
- Unix System Programming Chapter 15 15.2 Pipes
- pip常见命令和更改源文件
- 情感分析SowNLP词库
- Unix Environment Programming Chapter 14 14.8 Memory Mapped I/O
- 真香!肝完Alibaba这份面试通关宝典,我成功拿下今年第15个Offer
- Unix Environment Programming Chapter 15 15.3 Functions popen and pclose
猜你喜欢
Solve the ali cloud oss - the original 】 【 exe double-click response can't open, to provide a solution
使用cpolar远程连接群晖NAS(创建临时链接)
MNIST机器学习入门
Transformer+Embedding+Self-Attention原理详解
真香!肝完Alibaba这份面试通关宝典,我成功拿下今年第15个Offer
activemq 消息持久化
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 2 Validate input: letters and numbers only
BERT预训练模型(Bidirectional Encoder Representations from Transformers)-原理详解
The complete grammar of CSDN's markdown editor
随机推荐
unix环境编程 第十五章 15.6 XSI IPC
Database connection operations for MySQL and MyEclipse
AQS同步组件-ForkJoin、BlockingQueue阻塞队列解析和用例
Unix Environment Programming Chapter 15 15.9 Shared Storage
How tall is the B+ tree of the MySQL index?
在webgis中显示矢量化后的风险防控信息
2022强网杯WP
OpenGL ES2.0编程三部曲(转载自MyArrow)
OpengGL绘制立方体的三种方法
绝了,这套RESTful API接口设计总结
机器学习--线性回归(Linear Regression)
解决1.tensorflow运行使用CPU不使用GPU 2.tensorflow环境下的GPU版本号 3.tensorflow和cuda以及cudnn版本对应问题 4.查看cuda和cudnn版本
xmms的歌词显示及音量控制OK
cnn的输入输出
基于STM32设计的环境检测设备
小程序员的发展计划
numpy的ndarray取数操作
LM小型可编程控制器软件(基于CoDeSys)笔记二十六:plc的数据存储区(模拟量输入通道部分)
arcgis制图之天地图符号样式配置
人物 | 从程序员到架构师,我是如何快速成长的?