MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / TEST

Function TEST

test/topk.cpp:217–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217TEST(TopK, ValidationCheck_DimN) {
218 dim_t dims[4] = {10, 10, 1, 1};
219 af_array out, idx, in;
220 ASSERT_SUCCESS(af_randu(&in, 2, dims, f32));
221 ASSERT_EQ(AF_ERR_NOT_SUPPORTED,
222 af_topk(&out, &idx, in, 10, 1, AF_TOPK_MAX));
223 ASSERT_SUCCESS(af_release_array(in));
224}
225
226TEST(TopK, ValidationCheck_DefaultDim) {
227 dim_t dims[4] = {10, 10, 1, 1};

Callers

nothing calls this directly

Calls 10

randuFunction · 0.85
constantFunction · 0.85
seqClass · 0.85
asMethod · 0.80
af_randuFunction · 0.50
af_topkFunction · 0.50
af_release_arrayFunction · 0.50
topkFunction · 0.50
tileFunction · 0.50
dim4Class · 0.50

Tested by

no test coverage detected