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

Function run_compute_test

src/serialization/test/extern_c_opr.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void run_compute_test(CompNode cn, MGBDType dtype) {
302 float bias = 1.2, scale = -2.1;
303 auto graph_dump = create_graph_dump(bias, scale, 0.3, dtype);
304 check_dump_by_compute(
305 InputFile::make_mem_proxy(graph_dump.data(), graph_dump.size()), cn, dtype,
306 bias, scale);
307}
308void run_compute_test_with_param(
309 CompNode cn, MGBDType dtype, std::shared_ptr<ExternCOprParam> param) {
310 float bias = 1.2, scale = 0;

Callers 1

TESTFunction · 0.70

Calls 4

check_dump_by_computeFunction · 0.85
create_graph_dumpFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected