File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 22
22
python-version : ${{ matrix.python-version }}
23
23
24
24
- name : Install package
25
- run : pip install .
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ pip install -e .
26
28
27
29
- name : Run tests
28
- run : python -m unittest
30
+ run : |
31
+ pip install pytest
32
+ pytest -ra --capture=no --showlocals
Original file line number Diff line number Diff line change 20
20
// Modified by: Particular Miner
21
21
// April 14, 2021
22
22
23
+ #include < cmath>
23
24
#include < vector>
24
25
#include < algorithm>
25
26
#include < numeric>
@@ -398,7 +399,7 @@ int sparse_dot_topn_extd_parallel(
398
399
std::vector<int > sub_total (n_jobs, 0 );
399
400
std::vector<int > split_n_minmax (n_jobs, 0 );
400
401
401
- int mem_sz_per_row = std::max (1 , (int ) ceil (((double ) nnz_max)/((double ) n_row)));
402
+ int mem_sz_per_row = std::max (1 , (int ) std:: ceil (((double ) nnz_max)/((double ) n_row)));
402
403
403
404
std::vector<std::thread> thread_list (n_jobs);
404
405
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ def test_awesome_cossim_top_large_matrix():
280
280
# test with large matrix
281
281
nr_vocab = 2 << 24
282
282
density = 1e-6
283
- n_samples = 10000
283
+ n_samples = 1000
284
284
nnz = int (n_samples * nr_vocab * density )
285
285
286
286
rng1 = np .random .RandomState (42 )
You can’t perform that action at this time.
0 commit comments