| 112 | } |
| 113 | |
| 114 | void reportValidationFailure(char const* msg, char const* file, int32_t line) |
| 115 | { |
| 116 | std::ostringstream stream; |
| 117 | stream << "Validation failed: " << msg << "\n" << file << ':' << line << "\n"; |
| 118 | #ifdef COMPILE_VFC_PLUGIN |
| 119 | ILogger* logger = getPluginLogger(); |
| 120 | if (logger != nullptr) |
| 121 | { |
| 122 | logger->log(nvinfer1::ILogger::Severity::kINTERNAL_ERROR, stream.str().c_str()); |
| 123 | } |
| 124 | #else |
| 125 | getLogger()->log(nvinfer1::ILogger::Severity::kINTERNAL_ERROR, stream.str().c_str()); |
| 126 | #endif |
| 127 | } |
| 128 | |
| 129 | // break-pointable |
| 130 | void reportAssertion(char const* msg, char const* file, int32_t line) |
no test coverage detected