title: ValueError: operands could not be broadcast together with shapes (224,224) (180,180)
body: <p>I am writing a program to find the cosine similarity between two vectors. For small text files it works fine but for large datas it gives error. I have gone through many examples of broadcasting but couldn't get the actual problem. (Getting an error at line p=x*y)</p>
  
  <pre><code>x = numpy.dot(u, u.T)
  y = numpy.dot(v, v.T)
  p = x * y
  value = numpy.dot(u, v.T) / p
  
  p=(x*y)
  ValueError: operands could not be broadcast together with shapes (224,224) (180,180)
  </code></pre>