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

Function TEST

src/opr/test/indexing.cpp:168–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166} // anonymous namespace
167
168TEST(TestOprDiag, Diag) {
169 TensorShapeArray cases = {{7, 7}, {7, 9}, {9, 7}, {8}};
170 for (int32_t k = -3; k < 3; ++k)
171 test_diag(k, cases);
172}
173
174TEST(TestOprIndexing, OneHot2D) {
175 TensorShapeArray cases = {{1, 1}, {2, 2}, {10, 8}, {8, 10}};

Callers

nothing calls this directly

Calls 15

make_callback_copyFunction · 0.85
TensorShapeClass · 0.85
mavi_iter_data_valueFunction · 0.85
check_async_errorFunction · 0.85
mesh_indexing_implFunction · 0.85
resizeMethod · 0.80
as_megdnnMethod · 0.80
test_diagFunction · 0.70
test_one_hotFunction · 0.70
makeFunction · 0.70
iotaFunction · 0.70
genFunction · 0.50

Tested by

no test coverage detected