## TensorFlow Basics – Part 1

Basic Syntax, Graphs, Variables & Placeholders Basic Syntax In [1]: import tensorflow as tf In [2]: print(tf.__version__) 1.3.0 Tensors n-dimensional array In [3]: hello = tf.constant(‘Hello ‘) In [4]: world = tf.constant(‘World’) In [5]: type(hello) Out[5]: tensorflow.python.framework.ops.Tensor Tensorflow Session In [7]: with tf.Session() as sess: result = sess.run(hello+world) In [8]: result Out[8]: b’Hello World’ Computations In [9]: a …