Hello, TensorFlow

I’ve recently discovered Safari Books Online thanks to a post on HackerNews. One of the first things that caught my eye was one of the Oriole Online Tutorials - Hello, TensorFlow. It was a very quick overview of TensorFlow in a really cool format. There was a video with an accompanying article (which can autoscroll along with the video contents) and code snippets embedded on the page which you can actually work with and run in the browser.

Today, I saw a new recommendation on my Safari Books Online account page: a 3-chapter preview of the as of yet unreleased book Learning TensorFlow by Tom Hope, Yehezkel S. Resheff, and Itay Lieder. I decided to spend some time reading today and following along with the provided examples and exercises.

What follows is just some general notes I took as I went, and some retrospective on a couple of the exercises. Not particularly organized, saved here in case I want to go back through them later.

First, I started a learning repository which will contain some random TensorFlow learning stuff: https://github.com/drakonka/HelloTensorFlow

Setting up the environment

Python debugging in Visual Studio Code

General notes

Example 3-1

Example 3-1 provided code for a graph and then a visual (non TensorBoard) representation of that graph. Before peeking at the visual I made my own to compare to the “answer”:

My example graph

Example 3-2

Example 3-2 gave a fun challenge! The book provides two visual representations of graphs and the task is to create those graphs in TensorFlow. However, the exercise did not provide solutions so I needed some other way to test how correct my result was. I ended up learning how to set up and start TensorBoard to have it visualize the graphs I made and compare them to the example graphs (which were not represented in the same TensorBoard format, but still gave me the ability to compare and make sure the node and edge connections looked correct):

Graph A

Example 3-2 Graph A

Graph B

Example 3-2 Graph B

Next

I’m not sure when the rest of the book is being released, but while I wait I may as well use the time to brush up on the relevant math concepts.

comments powered by Disqus