import tensorflow as tf

#
#     hello = tf.constant('Hello, TensorFlow!')
#     print(sess.run(hello))
#
#     a = tf.constant(10)
#     b = tf.constant(32)
#     print(sess.run(a + b))
#
#     c = tf.constant('haHa')
#     print(sess.run(c))
#
#     sess.close()


identity_matrix = tf.diag([1.0, 3.0, 1.0])
A = tf.truncated_normal([2, 3])
B = tf.fill([2, 3], 5.0)
C = tf.random_uniform([3, 2], maxval=100)
D = tf.convert_to_tensor(np.array([[1., 2., 3.], [-3., -7., -1.], [0., 5., -2.]]))
sess = tf.Session()
# sess.run(tf.global_variables_initializer())

# print(sess.run(tf.random_normal(mean=10, shape=[10])))

# A = tf.Variable(tf.random_normal(shape=[1, 1]))
# sess.run(tf.global_variables_initializer())
# print(sess.run(A))

print('\nI=')
print(sess.run(identity_matrix))
