SyntaxFix
Write A Post
Hire A Developer
Questions
I am not sure if I am missing here, but I think the easiest and best way to do it is using tf.keras.backend.get_value API.
tf.keras.backend.get_value
print(product) >>tf.Tensor([[12.]], shape=(1, 1), dtype=float32) print(tf.keras.backend.get_value(product)) >>[[12.]]