---------------------------------------------------------------
| 94 | |
| 95 | //--------------------------------------------------------------- |
| 96 | void ValidateNumOutputs(const WorkloadInfo& workloadInfo, std::string const& descName, const unsigned int expectedSize) |
| 97 | { |
| 98 | if (workloadInfo.m_OutputTensorInfos.size() != expectedSize) |
| 99 | { |
| 100 | throw InvalidArgumentException(descName + |
| 101 | ": Requires exactly " + to_string(expectedSize) + " output(s). " + |
| 102 | to_string(workloadInfo.m_OutputTensorInfos.size()) + " has been provided."); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | //--------------------------------------------------------------- |
| 107 |
no test coverage detected