I was wondering if there is an easy way to calculate the dot product of two vectors (i.e. 1-d tensors) and return a scalar value in tensorflow.
Given two vectors X=(
In newer versions (I think since 0.12), you should be able to do
tf.einsum('i,i->', x, y)
(Before that, the reduction to a scalar seemed not to be allowed/possible.)