---------------------------------------------------------------
| 83 | |
| 84 | //--------------------------------------------------------------- |
| 85 | void 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 | //--------------------------------------------------------------- |
| 96 | void ValidateNumOutputs(const WorkloadInfo& workloadInfo, std::string const& descName, const unsigned int expectedSize) |
no test coverage detected