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

Function run_compute_test_with_param

src/serialization/test/extern_c_opr.cpp:308–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
311 auto graph_dump = create_graph_dump(bias, scale, 0.3, dtype);
312 check_dump_by_compute_with_param(
313 InputFile::make_mem_proxy(graph_dump.data(), graph_dump.size()), cn, dtype,
314 bias, param);
315}
316} // namespace
317
318TEST(TestExternCOpr, ExternCOprParam) {

Callers 1

TESTFunction · 0.85

Calls 4

create_graph_dumpFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected