MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / AddInput

Method AddInput

ethos-u-corstone-1000/app/src/common/RunnerOptions.cpp:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41} // namespace
42
43bool RunnerOptions::AddInput(const std::string& filePath, InputMode mode)
44{
45 if (this->inputMode == InputMode::kUnset) {
46 this->inputMode = mode;
47 }
48
49 if (this->inputMode != mode) {
50 std::cerr << "Error: binary and image inputs are mutually exclusive\n";
51 return false;
52 }
53
54 this->inputs.push_back(filePath);
55 return true;
56}
57
58bool RunnerOptions::Validate(const CliOptionsConfig& config) const
59{

Callers 1

ParseCliOptionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected