当前位置:网站首页>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) 
原网站

版权声明
本文为[qq_26391203]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208091039085817.html