MCPcopy Create free account
hub / github.com/ARM-software/armnn / ValidateNumInputs

Function ValidateNumInputs

src/backends/backendsCommon/WorkloadData.cpp:85–93  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

83
84//---------------------------------------------------------------
85void ValidateNumInputs(const WorkloadInfo& workloadInfo, std::string const& descName, const unsigned int expectedSize)
86{
87 if (workloadInfo.m_InputTensorInfos.size() != expectedSize)
88 {
89 throw InvalidArgumentException(descName +
90 ": Requires exactly " + to_string(expectedSize) + "input(s). " +
91 to_string(workloadInfo.m_InputTensorInfos.size()) + " have been provided.");
92 }
93}
94
95//---------------------------------------------------------------
96void ValidateNumOutputs(const WorkloadInfo& workloadInfo, std::string const& descName, const unsigned int expectedSize)

Callers 1

ValidateMethod · 0.70

Calls 3

to_stringFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected