Pustaka Taratsa
TensorFlow: Test Graph untuk berhitung

TensorFlow: Test Graph untuk berhitung

Penulis: Onno Widodo Purbo

Ketik python Ketik import tensorflow as tf x = tf.constant(8) y = tf.constant(9) z = tf.multiply(x, y) sess = tf.Session() out_z = sess.run(z) sess.close() print('The multiplicaiton of x and y: %d' % out_z) quit() Atau ketik import tensorflow as tf with tf.Session() as sess: x = tf.placeholder(tf.float32, name="x") y = tf.placeholder(tf.float32, name="y") z = tf.multiply(x,y) z_output =