I am trying to get the best combination of two set of word embeddings. So I basically calculate a similar matrix a[i,j] = similarity(Ei, Ej) and then apply a LAP algorithm.
So it looks like:
sim_matrix = torch.zeros([100, 100], dtype=torch.float)
nn.init.uniform_(sim_matrix)
auction_lap(sim_matrix)

and I got this error:
Traceback (most recent call last):
  File "E:/文档/code/EAbyRule/graph_completion/auction_lap.py", line 67, in <module>
    auction_lap(a)
  File "E:/文档/code/EAbyRule/graph_completion/auction_lap.py", line 41, in auction_lap
    src=bid_increments.view(-1, 1)
RuntimeError: Dimension out of range (expected to be in range of [-1, 0], but got 1)