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

Function TEST

lite/test/test_network.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52} // namespace
53
54TEST(TestNetWork, Basic) {
55 Config config;
56 auto lite_tensor = get_input_data("./input_data.npy");
57 std::string model_path = "./shufflenet.mge";
58 auto result_lite = mgelite_lar(model_path, config, "data", lite_tensor);
59 auto result_mgb = mgb_lar(model_path, config, "data", lite_tensor);
60 compare_lite_tensor<float>(result_lite, result_mgb);
61}
62
63TEST(TestNetWork, RefCount) {
64 Config config;

Callers

nothing calls this directly

Calls 15

get_input_dataFunction · 0.85
mgelite_larFunction · 0.85
mgb_larFunction · 0.85
get_model_io_infoFunction · 0.85
test_multi_threadFunction · 0.85
test_output_no_copyFunction · 0.85
test_input_no_copyFunction · 0.85
test_io_no_copy_axFunction · 0.85
get_device_countFunction · 0.85
load_no_deviceFunction · 0.85
load_device_inputFunction · 0.85
load_device_idFunction · 0.85

Tested by

no test coverage detected