nfmcclure / tensorflow_cookbook

Code for Tensorflow Machine Learning Cookbook
https://www.packtpub.com/big-data-and-business-intelligence/tensorflow-machine-learning-cookbook-second-edition
MIT License
6.23k stars 2.41k forks source link

Chapter 8 Example: Implementing a Simpler CNN #159

Open kh-cheng opened 5 years ago

kh-cheng commented 5 years ago

I tried to run the file 02_introductory_cnn in chapter 8. But I find an error. In train_dict = {x_input: rand_x, y_target: rand_y}, y_target is of shape=(batch_size), but rand_y is of shape=(batch_size, 10)