Tensorflow has a function:
tf.matmul
which multiplies two vectors and produces a scalar.
However, I need to do the following:
dense_part = tf.nn.relu(some stuff here)
softmax_matrix = tf.matmul(dense_part,softmax_weight_variable)
However, I cannot set softmax_weight_variable to accomplish this with matrix multiplication. I need to use the "Tensor Product" (also called the "Outer Product" ...), but this function does not seem to be implemented.
How do I implement Hadamard (by element) and Outer Product multiplication in TensorFlow?
source
share