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

Function load_no_device

lite/test/test_network.cpp:1600–1607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598#if MGB_ATLAS || MGB_CAMBRICON
1599namespace {
1600void load_no_device(LiteDeviceType device_type, const std::string& model_path) {
1601 lite::Config config;
1602 config.device_type = device_type;
1603 auto network = std::make_shared<lite::Network>(config);
1604 network->load_model(model_path);
1605 network->forward();
1606 network->wait();
1607}
1608
1609void load_device_input(
1610 LiteDeviceType device_type, const std::string& model_path,

Callers 1

TESTFunction · 0.85

Calls 3

load_modelMethod · 0.45
forwardMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected