I have been using the introductory example of matrix multiplication in TensorFlow.
matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) produ
In Tensorflow 2.0+ (or in Eager mode environment) you can call .numpy() method:
.numpy()
import tensorflow as tf matrix1 = tf.constant([[3., 3.0]]) matrix2 = tf.constant([[2.0],[2.0]]) product = tf.matmul(matrix1, matrix2) print(product.numpy())