Skip to content

Some wrong code in get_started document #362

Closed

Description

@FangLinHe

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?

Activity

  1. mrry commented on Nov 30, 2015

    @mrry
    Contributor

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

  2. self-assigned this
    on Nov 30, 2015
  3. FangLinHe commented on Dec 1, 2015

    @FangLinHe
    Author

    Thanks for the prompt reply!

  4. FangLinHe commented on Dec 1, 2015

    @FangLinHe
    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].

  5. Careenn commented on Mar 28, 2017

    @Careenn

    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.....

  6. mrry commented on Mar 28, 2017

    @mrry
    Contributor

    @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!).

  7. added a commit that references this issue on May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:docs-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions