2.) Multiplication of two array element using tensorflow library in python on January 22, 2019 Get link Facebook X Pinterest Email Other Apps import tensorflow as tf p1=tf.constant([1,2,3,4]) p2=tf.constant([2,4,6,8]) result=tf.multiply(p1,p2) session=tf.Session() print(session.run(result)) Output:- Here in Example, constant arrays have been passed to function and it will do the multiplication of two arrays element-wise. Comments
Comments
Post a Comment