MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / FlagType2String

Function FlagType2String

paddle/common/flags_native.cc:174–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172#undef INSTANTIATE_FLAG_REGISTERER
173
174std::string FlagType2String(FlagType type) {
175 switch (type) {
176 case FlagType::BOOL:
177 return "bool";
178 case FlagType::INT32:
179 return "int32";
180 case FlagType::UINT32:
181 return "uint32";
182 case FlagType::INT64:
183 return "int64";
184 case FlagType::UINT64:
185 return "uint64";
186 case FlagType::DOUBLE:
187 return "double";
188 case FlagType::STRING:
189 return "string";
190 default:
191 return "undefined";
192 }
193}
194
195std::string Value2String(const void* value, FlagType type) {
196 switch (type) {

Callers 3

SummaryMethod · 0.85
SetValueFromStringMethod · 0.85
GetFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected