R matrix multiplication element wise

To perform elementwise multiplication on tensors, you can use either of the following: a*b. tf.multiply (a, b) Here is a full example of elementwise multiplication using both methods. import tensorflow as tf import numpy as np # Build a graph graph = tf.Graph () with graph.as_default (): # A 2x3 matrix a = tf.constant (np.array ( [ [ 1, 2, 3 ....