typo: remove hardcoding of K in _knn_bruteforce

I believe that you meant for this to be self.K not 4, please correct me if I am wrong.
This commit is contained in:
Mike Clark
2018-11-18 15:49:28 +08:00
committed by GitHub
parent 4ec3734736
commit 497bebd041
+1 -1
View File
@@ -81,7 +81,7 @@ class KnnBruteforce(Layer):
if self.data_format == 'expanded':
positions = _remove_dim(positions, 2)
NN, _, _ = _knn_bruteforce(positions, K=4)
NN, _, _ = _knn_bruteforce(positions, K=self.K)
NN = tf.transpose(NN, [0, 2, 1])
if self.data_format == 'expanded':