MCPcopy Create free account
hub / github.com/dmlc/parameter_server / SetUp

Method SetUp

src/test/sparse_matrix_perf.cc:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7class SparseMatrixPerf : public ::testing::Test {
8 protected:
9 virtual void SetUp() {
10 DataConfig data;
11 data.set_format(DataConfig::PROTO);
12 data.add_file("../../data/ctrb/train/part-000[0-3].*");
13
14 auto list = readMatricesOrDie<double>(searchFiles(data));
15 X = std::static_pointer_cast<SparseMatrix<uint64, double>>(list[1]);
16
17 FLAGS_num_threads = 1;
18 auto t = tic();
19 X->countUniqIndex(&key);
20 LL << "sort keys: " << toc(t);
21
22 time.resize(num_threads+1);
23 }
24
25 SArray<uint64> key;
26 SpMat X;

Callers

nothing calls this directly

Calls 7

searchFilesFunction · 0.85
ticFunction · 0.85
tocFunction · 0.85
add_fileMethod · 0.80
set_formatMethod · 0.45
countUniqIndexMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected