chiphuyen / stanford-tensorflow-tutorials

This repository contains code examples for the Stanford's course: TensorFlow for Deep Learning Research.
http://cs20.stanford.edu
MIT License
10.32k stars 4.32k forks source link

this line seems does not compile with latest TF #71

Closed littlezerg2002 closed 6 years ago

littlezerg2002 commented 6 years ago

https://github.com/chiphuyen/stanford-tensorflow-tutorials/blob/b95dcdf7bd3efa0f6ff3c28e01d3d42d2084b35c/examples/07_convnet_mnist_starter.py#L25

I change it to below to make it pass: mnist = input_data.read_data_sets('MNIST_data', one_hot=True)

physhik commented 6 years ago

change "/data/mnist" into "data/mnist"

also change tf.contribute.layers into tf.layers

and activation_fn -> activation

These change will work in version 1.3.0

chiphuyen commented 6 years ago

thanks @physhik. also, we'll be releasing the new code for mnist convnet in a few days.