From fc20d8a5d888ad0eb10bbefe3b99044517309133 Mon Sep 17 00:00:00 2001 From: Dante Gama Dessavre Date: Wed, 23 Jun 2021 12:22:47 -0500 Subject: [PATCH] FIX Update abs call for np 1.21 change --- python/cuml/test/test_dbscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cuml/test/test_dbscan.py b/python/cuml/test/test_dbscan.py index 0c9d5c8e88..95944669cd 100644 --- a/python/cuml/test/test_dbscan.py +++ b/python/cuml/test/test_dbscan.py @@ -86,7 +86,7 @@ def test_dbscan_precomputed(datatype, nrows, max_mbytes_per_batch, out_dtype): # Precompute distances Xc = np.array([[complex(p[0], p[1]) for p in X]]) - X_dist = np.abs(Xc - Xc.T, dtype=datatype) + X_dist = np.abs(Xc - Xc.T).astype(datatype) eps = 1 cuml_dbscan = cuDBSCAN(eps=eps, min_samples=2, metric='precomputed',