Open qinzheng93 opened 2 years ago
I am implementing kNN with KeOps but always get the following warning:
[pyKeOps] Warning : keyword argument dtype in Genred is deprecated ; argument is ignored.
But I didn't pass a dtype argument in my code:
dtype
def keops_knn(k, dimension=3): xi = Vi(0, dimension) xj = Vj(1, dimension) dij = (xi - xj).norm2() knn_func = dij.Kmin_argKmin(k, dim=1) return knn_func knn_func = keops_knn(k, dimension=3) knn_distances, knn_indices = knn_func(q_points, s_points)
How should I get rid of the warning message?
Hello @qinzheng93 , This warning was issued because some part of the code in the LazyTensor class was not properly updated when we released the v2.0. This is now fixed in the main branch.
LazyTensor
I am implementing kNN with KeOps but always get the following warning:
But I didn't pass a
dtype
argument in my code:How should I get rid of the warning message?