FirstContactWithTensorFlow Save Abandoned

This repository contains the information required by the TensorFlow Hands-on at Summer Seminar ETSETB TelecomBCN, 4-8 July 2016

Project README

Course First Contact With TensorFlow

This course, as part of [Summer Seminar ETSETB TelecomBCN, 4-8 July 2016 (http://telecomBCN.DeepLearning.Barcelona)] (http://telecomBCN.DeepLearning.Barcelona) is basically a hands-on tutorial that provides a quick start to building applications using TensorFlow. and we will teach the esential ideas of Tensorflow ecosystem.

Course details



We assume that the student has some basic knowledge about Python. If not, a Python Quick Start hands-on that will help to start with this language can be found here (Python Quick Start).

We assume that the student has a Ubuntu/Linux 64-bit or Mac OS X environment. If the student have a Windows environment we suggest to use VirtualBox in order to run a Linux in a separate virtual machine. You can follow the hands-on RUN A LINUX OS IN A VIRTUAL MACHINE to install it from this web.


Course grade are comprised of 3 homework assignments by groups (30%), class exercises (20%) and individual class attendance (50%).

Schedule (tentative)

Day 1 (Monday 04/07/2016)
  • How to build basic TensorFlow graphs and how to train models
  • Case study: Linear Regression in TensorFlow
Day 2 (Tuesday 05/07/2016)
  • Basic data structures in TensorFlow
  • Case study: Clustering in TensorFlow
Day 3 (Wednesday 06/07/2016)
  • Single Layer Neural Network in TensorFlow
  • TensorBoard
Day 4 (Thursday 07/07/2016)
  • Convolutional Neural Networks in TensorFlow
  • TensorFlow High Level APIs: SLIM
Day 5 (Friday 08/07/2016)
  • Recurrent Neural Networks in TensorFlow


We will use the book [First Contact with TensorFlow] ( as a basic documentation. You can acces a [freely available on-line copy] (>). The slides used during the hands-on will be also available before start the course. Additional documentation will be distributed during the course.

The slides and codes used during the sessions will be posted/updated 2 hours before the session:

Day 1
Day 2
Day 3
Day 4
Day 5

Installation instructions (do it before the course starts)

For the sessions, please bring your laptop, and you should have a working installation of Python. TensorFlow has a Python API (plus a C / C ++) that requires the installation of Python 2.7. Nowadays many Linux and UNIX distributions include a recent Python.If this is not the case I assume that any student who take this course knows how to install it from the general download page.

During the sessions lab the instructor could use IPython/Jupyter. If you are interested to use too, you can obtain it from [here] ( (optional).

Virtual environment-based installation

We will use a virtual environment virtualenv, a tool to create isolated Python environments to install TensorFlow. This will not overwrite existing versions and dependencies (and indirectly permissions) of Python packages from other projects required by TensorFlow in your laptop. Virtualenv creates an environment that has its own installation directories, that doesn’t share libraries with other virtualenv environments (and optionally doesn’t access the globally installed libraries either).

Follow the indications from the TensorFlow web page for installing the latest version of TensorFlow in a virtualenv.

The exemples in this hands-on will require install the following packages too:

$ sudo pip install numpy
$ sudo pip install matplotlib

My first code

In order to be sure that everything is working fine, create a simple TensorFlow code and save it with extension ".py". I suggest to use the following code from the course github:

import tensorflow as tf
a = tf.placeholder("float")
b = tf.placeholder("float")
y = tf.mul(a, b)
sess = tf.Session()
print, feed_dict={a: 3, b: 3})

You can download it from the github using the git command:

(telecomBCN)$ git clone

To run the code, it will be enough with the command

(telecomBCN)$ cd FirstContactWithTensorFlow
(telecomBCN)$ python

If the result is 9.0, it means that TensorFlow is properly installed.

Disable the virtual environment

Finally, when you’ve finished, you should disable the virtual environment as follows:

(telecomBCN)$ deactivate
Open Source Agenda is not affiliated with "FirstContactWithTensorFlow" Project. README Source: jorditorresBCN/FirstContactWithTensorFlow
Open Issues
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating