NEW: RESOURCE PAGE

Searching for tutorials and software about Deep Learning and Neural Nets? Be sure to look at my Resource Page!
Looking for Octave? Go to my Easy Octave on Mac page!

Saturday, November 14, 2015

Hello World with TensorFlow, Conda.

This continues my working notes.  The last post was about installing TensorFlow, this one is about starting to work it.  I'm using Conda. Select Python 2.7 and launch a notebook and copy and paste from the tutorial. I've jumped straight to the interactive usage part of the tutorial: Note the tf.InteractiveSession()



As I parse this, we create a  session sess that sits there in the background but which we don't to refer to, and we create a constant and a variable node which become part of the default grapg; then we ask the variable to run its initializer —resetting it to its default starting state— declare an operator node which is also added to the default graph, run it with its eval method and print the result. I'm not yet sure  of the semantics, but at least I have this thing running and can play with it.

As of a few days ago, I didn't know anything about Python, Conda or TensorFlow, so I think this is a nice HelloWorld run, and I'll go have a drink. 


No comments:

Post a Comment

Hey, let me know what you think of my blog, and what material I should add!