matrix1 = tf.constant([[3., 3.]])
matrix2 = tf.constant([[2.],[2.]])
product = tf.matmul(matrix1, matrix2)
<tensorflow.python.framework.ops.Tensor object at 0x10470fcd0>
print product
Tensor("MatMul:0", shape=TensorShape([Dimension(1), Dimension(1)]), dtype=float32)
Write your answer...
I was playing around with tf.gradients and got gradients as None for the below code: The environment is Python 2.7 with tensorflow 1.12 I'm not able to understand why this happens. shouldn't it be
Gufran Mirza
General
Asked • Mar 16 2019