当前位置:网站首页>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)
边栏推荐
- pip常见命令和更改源文件
- 情感分析SowNLP词库
- VBA实战(11) - 工作表(Sheet) 操作汇总
- 相关系数计算,热力图绘制,代码实现
- 学习NET-SNMP之二-----------VisualStudio编译Net-SNMP
- unix环境编程 第十五章 15.8信号量
- [Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
- AQS同步组件-FutureTask解析和用例
- 爬虫实例,获取豆瓣上某部电影的评论
- 1001 害死人不偿命的(3n+1)猜想 (15 分)
猜你喜欢
cesium加载地图
shell脚本实战(第2版)/人民邮电出版社 脚本1 在PATH中查找程序
2022年台湾省矢量数据(点线面)及数字高程数据下载
OneNote 教程,如何在 OneNote 中搜索和查找笔记?
shap库源码和代码实现
Electron application development best practices
情感分析SowNLP词库
Cpolar内网穿透的面板功能介绍
Transformer+Embedding+Self-Attention原理详解
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 1 Find programs in the PATH
随机推荐
Unix Environment Programming Chapter 15 15.3 Functions popen and pclose
1005 继续(3n+1)猜想 (25 分)
强化学习 (Reinforcement Learning)
numpy的ndarray取数操作
解决1.tensorflow运行使用CPU不使用GPU 2.tensorflow环境下的GPU版本号 3.tensorflow和cuda以及cudnn版本对应问题 4.查看cuda和cudnn版本
Mysql多表查询
unix环境编程 第十五章 15.8信号量
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization论文阅读
torch.cat()函数的官方解释,详解以及例子
情感分析SowNLP词库
torch.stack()的官方解释,详解以及例子
unix环境编程 第十四章 14.4 I/O多路转接
cnn的输入输出
caffe ---make all编辑出错
上传张最近做的E2用的xmms的界面的截图
tensorflow实现线性方程的参数调整
tensor.eq() tensor.item() tensor.argmax()
WUSTOJ:n个素数构成等差数列
Unix Environment Programming Chapter 14 14.4 I/O Multiplexing
OpenGL 2.0编程例子