Fixed: IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) in cosine_similarity
I compared two flat vectors with PyTorch's cosine_similarity, and it stopped with IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1). The function compares along dimension 1 unless told otherwise, and a flat vector has only dimension 0. Passing dim=0 fixed it.
