Commit 81e01a1
authored
Minor cython fixes / cleanup (rapidsai#1072)
* Release GIL on C++ cython declarations
* Remove 'valid values for metric' mention from the compute_new_centroids docstring (since it doesn't take a metric parameter)
* Remove `is_c_cont` in favour of `input_validation.is_c_contiguous` in kmeans.pyx
Authors:
- Ben Frederickson (https://github.com/benfred)
Approvers:
- Corey J. Nolet (https://github.com/cjnolet)
URL: rapidsai#10721 parent a9b09e4 commit 81e01a1
File tree
5 files changed
+9
-18
lines changed- python/pylibraft/pylibraft
- cluster
- cpp
- distance
- random
5 files changed
+9
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 60 | | |
70 | 61 | | |
71 | 62 | | |
| |||
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
173 | 164 | | |
174 | 165 | | |
175 | 166 | | |
| |||
258 | 249 | | |
259 | 250 | | |
260 | 251 | | |
261 | | - | |
262 | | - | |
| 252 | + | |
| 253 | + | |
263 | 254 | | |
264 | 255 | | |
265 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments