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

Function TEST_PASS

src/gopt/test/basic_arith.cpp:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392TEST_PASS(ExpandFusedArithPass, FMA) {
393 auto w = mkvar("w"), x = mkvar("x"), y = mkvar("y"), z = mkvar("z"),
394 a = fma3(fma3(w, x, y), fma4(w, x + y, y - z, z - w), z),
395 b = (w * x + y) * (w * (x + y) + (y - z) * (z - w)) + z;
396 check(b, a);
397}
398
399TEST_PASS(ExpandFusedArithPass, ADD) {
400 using namespace opr;

Callers 1

basic_arith.cppFile · 0.70

Calls 15

fma3Function · 0.85
fma4Function · 0.85
powfFunction · 0.85
unpack_vectorFunction · 0.85
powcFunction · 0.85
checkFunction · 0.50
makeFunction · 0.50
sigmoidFunction · 0.50
tanhFunction · 0.50
reluFunction · 0.50
hswishFunction · 0.50
genFunction · 0.50

Tested by

no test coverage detected