MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateFlag

Function CreateFlag

tensorflow/lite/tools/benchmark/benchmark_model.h:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130template <typename T>
131Flag CreateFlag(const char* name, BenchmarkParams* params,
132 const std::string& usage) {
133 return Flag(
134 name, [params, name](const T& val) { params->Set<T>(name, val); },
135 params->Get<T>(name), usage);
136}
137
138// Benchmarks a model.
139//

Callers 7

TESTFunction · 0.85
mainFunction · 0.85
CreateMethod · 0.85
MainFunction · 0.85
MainFunction · 0.85
MainFunction · 0.85
InitKernelTestFunction · 0.85

Calls 1

FlagClass · 0.50

Tested by 3

TESTFunction · 0.68
mainFunction · 0.68
InitKernelTestFunction · 0.68