Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some wrong code in get_started document #362

Closed
FangLinHe opened this issue Nov 26, 2015 · 5 comments
Closed

Some wrong code in get_started document #362

FangLinHe opened this issue Nov 26, 2015 · 5 comments
Assignees
Labels
type:docs-bug Document issues

Comments

@FangLinHe
Copy link

On your get started website http://www.tensorflow.org/get_started/basic_usage.html#basic-usage
I found a small piece of wrong code:
In the sample code of Feeds section:

input1 = tf.placeholder(tf.types.float32)
input2 = tf.placeholder(tf.types.float32)

I tried them and python gave the AttributeError: 'module' object has no attribute 'types'
After reading the document http://www.tensorflow.org/resources/dims_types.html
I think it should be tf.float32 instead of tf.types.float32. Probably it's a version issue?

@mrry
Copy link
Contributor

mrry commented Nov 30, 2015

Thanks for pointing this out! We have a fix in the pipeline, and it should appear on the website soon.

@mrry mrry self-assigned this Nov 30, 2015
@FangLinHe
Copy link
Author

Thanks for the prompt reply!

@FangLinHe
Copy link
Author

Again I found very minor wrong number in the tutorial: http://www.tensorflow.org/tutorials/mnist/beginners/index.html#mnist-for-ml-beginners
It mentions the shape of training images are [60000, 784], but actually [55000, 784]; also for the labels: [55000, 10] instead of [60000, 10].

@FangLinHe FangLinHe reopened this Dec 1, 2015
@martinwicke martinwicke added the type:docs-bug Document issues label Dec 2, 2015
@keveman keveman closed this as completed in fa095c5 Dec 2, 2015
@Careenn
Copy link

Careenn commented Mar 28, 2017

Thanks! it does help!!!!
Now I'm studying the newly tensorflow version based on the windows platform, and some demo codes of the guide TENSORFLOW.ORG gave do have some error, probably this guide is for python version 2.x, but the new tensorflow is based on python version 3.5.x.....

@mrry
Copy link
Contributor

mrry commented Mar 28, 2017

@Careenn If you have links to the tutorials that don't work in Python 3.5.x, please send them in a new issue (or sending a pull request that fixes them would be even better!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:docs-bug Document issues
Projects
None yet
Development

No branches or pull requests

4 participants