{ "cells": [ { "cell_type": "markdown", "metadata": { "toc": "true" }, "source": [ "# Table of Contents\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# What does TensorFlow do?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "- http://learningtensorflow.com/lesson2/" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "TensorFlow is a way of representing computation without actually performing it until asked. In this sense, it is a form of lazy computing, and it allows for some great improvements to the running of code:\n", "\n", "- Faster computation of complex variables\n", "- Distributed computation across multiple systems, including GPUs.\n", "- Reduced redundency in some computations" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let’s have a look at this in action. First, a very basic python script:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "40\n" ] } ], "source": [ "x = 35\n", "y = x + 5\n", "print(y)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This script basically just says “create a variable x with value 35, set the value of a new variable y to that plus 5, which is currently 40, and print it out”. The value 40 will print out when you run this program." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "