def rank_embeddings()

in mapillary_sls/utils/eval.py [0:0]


def rank_embeddings(qvecs, dbvecs):

	# search and rank
	scores = np.matmul(qvecs, dbvecs.T)
	ranks = np.argsort(-scores, axis=1)

	return ranks