In [8]:
import tensorflow as tf
a = tf.constant([1.0, 2.0])
b = tf.constant([3.0, 10.0])
c = a * b
emitX=tf.constant(3)
emitY=tf.constant(4)
emitZ=tf.constant(5)
with tf.Session() as sess:
print "OK"
print sess.run(tf.eye(6))
print sess.run(tf.diag([3.,4.]))
print sess.run(tf.diag([tf.sqrt(emitX),tf.sqrt(emitX),tf.sqrt(emitY),tf.sqrt(emitY),tf.sqrt(emitZ),tf.sqrt(emitZ))
In [ ]: