From 3c9ac1aa8d4562205e21056ee3b96ba435377a7b Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Mon, 18 Nov 2024 13:09:59 -0800 Subject: [PATCH] . --- python/cuvs/cuvs/neighbors/brute_force/brute_force.pyx | 2 +- python/cuvs/cuvs/neighbors/cagra/cagra.pyx | 2 +- python/cuvs/cuvs/neighbors/common.py | 2 +- python/cuvs/cuvs/neighbors/filters/filters.pyx | 2 +- python/cuvs/cuvs/neighbors/hnsw/hnsw.pyx | 2 +- python/cuvs/cuvs/neighbors/ivf_flat/ivf_flat.pyx | 2 +- python/cuvs/cuvs/neighbors/ivf_pq/ivf_pq.pyx | 2 +- python/cuvs/cuvs/neighbors/refine.pyx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/python/cuvs/cuvs/neighbors/brute_force/brute_force.pyx b/python/cuvs/cuvs/neighbors/brute_force/brute_force.pyx index d515c3723..9d1d24eae 100644 --- a/python/cuvs/cuvs/neighbors/brute_force/brute_force.pyx +++ b/python/cuvs/cuvs/neighbors/brute_force/brute_force.pyx @@ -33,7 +33,7 @@ from pylibraft.common.cai_wrapper import wrap_array from pylibraft.common.interruptible import cuda_interruptible from cuvs.distance import DISTANCE_TYPES -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from cuvs.common.c_api cimport cuvsResources_t diff --git a/python/cuvs/cuvs/neighbors/cagra/cagra.pyx b/python/cuvs/cuvs/neighbors/cagra/cagra.pyx index 916d72280..752aef741 100644 --- a/python/cuvs/cuvs/neighbors/cagra/cagra.pyx +++ b/python/cuvs/cuvs/neighbors/cagra/cagra.pyx @@ -33,7 +33,7 @@ from pylibraft.common import auto_convert_output, cai_wrapper, device_ndarray from pylibraft.common.cai_wrapper import wrap_array from pylibraft.common.interruptible import cuda_interruptible -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from libc.stdint cimport ( int8_t, diff --git a/python/cuvs/cuvs/neighbors/common.py b/python/cuvs/cuvs/neighbors/common.py index a2419ca82..c14b9f8c9 100644 --- a/python/cuvs/cuvs/neighbors/common.py +++ b/python/cuvs/cuvs/neighbors/common.py @@ -14,7 +14,7 @@ # limitations under the License. -def check_input_array(cai, exp_dt, exp_rows=None, exp_cols=None): +def _check_input_array(cai, exp_dt, exp_rows=None, exp_cols=None): if cai.dtype not in exp_dt: raise TypeError("dtype %s not supported" % cai.dtype) diff --git a/python/cuvs/cuvs/neighbors/filters/filters.pyx b/python/cuvs/cuvs/neighbors/filters/filters.pyx index d0a587a26..9bc2a905c 100644 --- a/python/cuvs/cuvs/neighbors/filters/filters.pyx +++ b/python/cuvs/cuvs/neighbors/filters/filters.pyx @@ -20,7 +20,7 @@ import numpy as np from libc.stdint cimport uintptr_t from cuvs.common cimport cydlpack -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from .filters cimport BITMAP, NO_FILTER, cuvsFilter diff --git a/python/cuvs/cuvs/neighbors/hnsw/hnsw.pyx b/python/cuvs/cuvs/neighbors/hnsw/hnsw.pyx index 720b9489e..bcfaf167e 100644 --- a/python/cuvs/cuvs/neighbors/hnsw/hnsw.pyx +++ b/python/cuvs/cuvs/neighbors/hnsw/hnsw.pyx @@ -21,7 +21,7 @@ from libcpp.string cimport string from cuvs.common.exceptions import check_cuvs from cuvs.common.resources import auto_sync_resources -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from cuvs.common cimport cydlpack diff --git a/python/cuvs/cuvs/neighbors/ivf_flat/ivf_flat.pyx b/python/cuvs/cuvs/neighbors/ivf_flat/ivf_flat.pyx index 2444e9ca9..7a169e1a0 100644 --- a/python/cuvs/cuvs/neighbors/ivf_flat/ivf_flat.pyx +++ b/python/cuvs/cuvs/neighbors/ivf_flat/ivf_flat.pyx @@ -33,7 +33,7 @@ from pylibraft.common.cai_wrapper import wrap_array from pylibraft.common.interruptible import cuda_interruptible from cuvs.distance import DISTANCE_TYPES -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from libc.stdint cimport ( int8_t, diff --git a/python/cuvs/cuvs/neighbors/ivf_pq/ivf_pq.pyx b/python/cuvs/cuvs/neighbors/ivf_pq/ivf_pq.pyx index 9c500a311..531302ee6 100644 --- a/python/cuvs/cuvs/neighbors/ivf_pq/ivf_pq.pyx +++ b/python/cuvs/cuvs/neighbors/ivf_pq/ivf_pq.pyx @@ -33,7 +33,7 @@ from pylibraft.common.cai_wrapper import wrap_array from pylibraft.common.interruptible import cuda_interruptible from cuvs.distance import DISTANCE_TYPES -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array from libc.stdint cimport ( int8_t, diff --git a/python/cuvs/cuvs/neighbors/refine.pyx b/python/cuvs/cuvs/neighbors/refine.pyx index acff96fb7..b7aa35dca 100644 --- a/python/cuvs/cuvs/neighbors/refine.pyx +++ b/python/cuvs/cuvs/neighbors/refine.pyx @@ -37,7 +37,7 @@ from cuvs.distance import DISTANCE_TYPES from cuvs.common.c_api cimport cuvsResources_t from cuvs.common.exceptions import check_cuvs -from cuvs.neighbors.common import check_input_array +from cuvs.neighbors.common import _check_input_array @auto_sync_resources