当前位置:网站首页>TensorFlow:NameError: name ‘input_data’ is not defined
TensorFlow:NameError: name ‘input_data’ is not defined
2022-08-09 10:39:00 【qq_26391203】
xueli1991的博客
在TensorFlow中文文档的教程中, 关于MNIST机器学习入门 一节,开头 down load mnist数据集的代码
import tensorflow.examples.tutorials.mnist.input_data
mnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)
直接复制运行会报错, NameError: name ‘input_data’ is not defined
应改成如下代码:
import tensorflow.examples.tutorials.mnist.input_data as input_data
mnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)
边栏推荐
猜你喜欢
随机推荐
实现下拉加载更多
BERT预训练模型(Bidirectional Encoder Representations from Transformers)-原理详解
1005 继续(3n+1)猜想 (25 分)
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 2 Validate input: letters and numbers only
15.8 the semaphore Unix environment programming chapter 15
The common problems in laptops, continuously updated
unix系统编程 第十五章 15.2管道
基于STM32设计的环境检测设备
深度学习--生成对抗网络(Generative Adversarial Nets)
机器学习-逻辑回归(logistics regression)
arcgis制图之天地图符号样式配置
按键精灵之输出文本
面试官:MySQL 中 update 更新,数据与原数据相同时会执行吗?大部分人答不上来!
day16_03集合
hover内部指定子类的样式
百度云大文件网页直接下载
学长告诉我,大厂MySQL都是通过SSH连接的
shell脚本实战(第2版)/人民邮电出版社 脚本1 在PATH中查找程序
How tall is the B+ tree of the MySQL index?
京东物流与五菱将开发联名版定制产品