<reponame>edmund03/-<filename>test_tensorflow.py<gh_stars>0
# Python program using TensorFlow
# for multiplying two arrays

# import `tensorflow`
import tensorflow as tf

# Initialize two constants
x1 = tf.constant([1, 2, 3, 4])
x2 = tf.constant([5, 6, 7, 8])

# Multiply
result = tf.multiply(x1, x2)

# Initialize the Session
sess = tf.compat.v1.disable_eager_execution()

# Print the result
print(sess.run(result))

# Close the session
sess.close()

# Python program using TensorFlow
# for multiplying two arrays

# import `tensorflow`
import tensorflow as tf

# Initialize two constants
x1 = tf.constant([1, 2, 3, 4])
x2 = tf.constant([5, 6, 7, 8])

# Multiply
result = tf.multiply(x1, x2)

# Initialize the Session
sess = tf.compat.v1.disable_eager_execution()

# Print the result
print(sess.run(result))

# Close the session
sess.close()
# Python program using TensorFlow # for multiplying two arrays # import `tensorflow` # Initialize two constants # Multiply # Initialize the Session # Print the result # Close the session