---------------------------------------------------------------
| 121 | |
| 122 | //--------------------------------------------------------------- |
| 123 | void ValidateTensorDataType(const TensorInfo& tensor, DataType dataType, |
| 124 | const std::string& descName, std::string const& tensorName) |
| 125 | { |
| 126 | if (tensor.GetDataType() != dataType) |
| 127 | { |
| 128 | throw InvalidArgumentException(descName + ": Expected data type " + GetDataTypeName(dataType) + " but got " + |
| 129 | GetDataTypeName(tensor.GetDataType()) + " for " + tensorName + " tensor."); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void ValidPerAxisQuantizedDataType(const TensorInfo& tensor, const std::string& descName, const std::string& tensorName) |
| 134 | { |
no test coverage detected