Tensor flow error while trying to print a basic numeric addition
<pre><code>import tensorflow as tf

x = tf.constant(35, name='x')
y = tf.Variable(x + 5, name='y')

model = tf.initialize_all_variables()

with tf.Session() as session:
    session.run(model)
    print(session.run(y))
</code></pre>

<p>This code generates an error saying <strong>Type Error: List of tensors when single tensor expected</strong></p>

<p>what could be the problem???</p>

<p><em>System Details: Virtualbox:Ubuntu 16.04 xenial, tensor flow 0.9.0, python-3.5</em></p>