MCPcopy Create free account
hub / github.com/alibaba/graph-learn / LoadFile

Method LoadFile

dynamic_graph_service/src/common/options.cc:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool Options::LoadFile(const std::string& option_file) {
232 YAML::Node node;
233 try {
234 node = YAML::LoadFile(option_file);
235 } catch (const YAML::BadFile& e) {
236 LOG(ERROR) << "Error in loading option file: " << e.what();
237 return false;
238 }
239 return SetOptions(node);
240}
241
242bool Options::SetOptions(const YAML::Node& map) {
243 std::string worker_type_str;

Callers 2

ConfigureMethod · 0.80
TestOptionsLoadFileFunction · 0.80

Calls 2

SetOptionsFunction · 0.85
whatMethod · 0.80

Tested by 1

TestOptionsLoadFileFunction · 0.64