Tensorflow — Order of fetches

I am playing with Tensorflow and found this interesting effect. The following code fragment gives different results each time you run it. tf.reset_default_graph() state = tf.Variable(2.0, name=”state”) one = tf.constant(1.0, name=”one”) update = tf.assign(state, tf.add(state, one)) init = tf.initialize_all_variables() with tf.Session(config=config) as sess: sess.run(init) result = sess.run([update, state]) print(result) result = sess.run([update, state]) print(result) [3.0, 2.0] [4.0, 3.0] [3.0, 2.0] [4.0, 4.0] It looks like the order of fetches in Tensorflow is not fixed. For tensors, they might be evaluated after the ops or before the ops. Depending on the actual order the fetch result will be different.

November 21, 2016 · 1 min · Bharath

g2.2xlarge GPU basics

A Graphics Processing Unit is a specialized processor usually sitting on a special card with its own memory. It does not have interrupts or virtual memory. For example EC2’s g2.2xlarge machine has the following graphics card. 00:03.0 VGA compatible controller: nVidia Corporation GK104GL [GRID K520] (rev a1) GRID K520 belongs to Nvidia’s Tesla card series and has GRID support (which allows GPU sharing). It plugs into a PCI slot on the motherboard. Each such card has 2 GK104GL GPUs, two 4GB RAM units, and 2x1536 CUDA cores. I will explain in detail below. ...

November 12, 2016 · 2 min · Bharath

What is Machine Learning: Part 2

Arthur Samuel described it as: “the field of study that gives computers the ability to learn without being explicitly programmed.” Basically the computer can be taught to do a particular task and once the learning is complete the computer can do that task well on its own. So the programming was not task specific, only the learning process was task specific. Something like public key encryption - the algorithms are public but the key ensures confidentiality and integrity. ...

November 12, 2016 · 2 min · Bharath

Machine Learning Course: Part 1

I just started the online Coursera course for Machine Learning by Andrew Ng. For the past couple of years I waded through the big data world a bit. Now I am trying to understand a bit of machine learning. (Also this page has lot of material). What hit me was the broad scope of machine learning. So it is really exciting and interesting to start on this journey which will hopefully wake me up from my lazy technical hibernation. ...

November 11, 2016 · 2 min · Bharath