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

Function TEST

src/opr/test/nn_int.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52} // anonymous namespace
53
54TEST(TestOprElemwiseMultiType, Fma3Int16x32x32x32) {
55 make_elemwise_multi_type_checker3(
56 opr::ElemwiseMultiType::Mode::FUSE_MUL_ADD3_INT16x32x32x32,
57 {dtype::Int16{}, dtype::Int32{}, dtype::Int32{}})
58 ->disable_grad_check()
59 .run({TensorShape{3, 4, 5}, {1, 4, 1}, {1, 4, 1}})
60 .run({TensorShape{1, 4, 5}, {1, 4, 1}, {1, 4, 1}})
61 .run({TensorShape{3, 4, 5}, {3, 4, 1}, {3, 4, 1}});
62}
63
64TEST(TestOprElemwiseMultiType, Fma3IXxf32xf32xi8) {
65 std::array<DType, 3> src_types{dtype::Int8{}, dtype::Int16{}, dtype::Int32{}};

Callers

nothing calls this directly

Calls 8

make_callback_copyFunction · 0.85
makeFunction · 0.70
loadFunction · 0.50
runMethod · 0.45
compileMethod · 0.45
waitMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected