Skip to content

Commit

Permalink
Make ctypedef conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Dec 19, 2024
1 parent 15de75d commit 4fb5e03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cuml/cuml/cluster/kmeans.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ IF GPUBUILD == 1:
from cuml.cluster.kmeans_utils cimport KMeansPlusPlus, Random, Array
from cuml.cluster cimport kmeans_utils

# Avoid potential future conflicts with cuml's level enum
ctypedef kmeans_utils.level_enum raft_level_enum

from cuml.internals.array import CumlArray
from cuml.common.array_descriptor import CumlArrayDescriptor
from cuml.internals.base import UniversalBase
Expand All @@ -53,9 +56,6 @@ _openmp_effective_n_threads = safe_import_from(
"sklearn.utils._openmp_helpers", "_openmp_effective_n_threads", alt=return_false
)

# Avoid potential future conflicts with cuml's level enum
ctypedef kmeans_utils.level_enum raft_level_enum


class KMeans(UniversalBase,
ClusterMixin,
Expand Down

0 comments on commit 4fb5e03

Please sign in to comment.