MCPcopy Create free account
hub / github.com/alibaba/MNN / LoadConfig

Method LoadConfig

apps/mnncli/src/cli_config_manager.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28Config ConfigManager::LoadConfig() {
29 // 1. Get default config as base
30 current_config_ = GetDefaultConfig();
31
32 // 2. If environment has valid values, override with environment
33 current_config_ = LoadFromEnvironment();
34
35 // 3. If file has valid values, override with file
36 current_config_ = LoadFromFile();
37
38 return current_config_;
39}
40
41bool ConfigManager::SaveConfig(const Config& config) {
42 try {

Callers 10

SearchRemoteModelsMethod · 0.80
DownloadModelMethod · 0.80
DeleteModelMethod · 0.80
ShowModelInfoMethod · 0.80
ListLocalModelsMethod · 0.80
GetConfigPathMethod · 0.80
HandleMethod · 0.80
HandleMethod · 0.80
HandleMethod · 0.80
HandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected