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

Function TEST

compiler/test/kernel/opr/naive/typecvt.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace megcc::test;
4
5TEST(NAIVE, Typecvt) {
6 Checker<TypeCvtForward> checker;
7 checker.set_kernel_symbol("kernel_.*");
8 checker.set_dynamic_megcc(true);
9 for (auto src_dtype : {dtype::Uint8()})
10 for (auto dst_dtype : {dtype::Float32()}) {
11 checker.set_dtype(0, src_dtype);
12 checker.set_dtype(1, dst_dtype);
13 checker.execs({{2, 10}, {2, 10}});
14 checker.execs({{2, 10, 4}, {2, 10, 4}});
15 checker.execs({{3, 4, 5, 6}, {3, 4, 5, 6}});
16 }
17}
18
19TEST(NAIVE, Typecvt2Int8) {
20 Checker<TypeCvtForward> checker;

Callers

nothing calls this directly

Calls 1

execsMethod · 0.45

Tested by

no test coverage detected