MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / reportValidationFailure

Function reportValidationFailure

plugin/common/checkMacrosPlugin.cpp:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void 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
130void reportAssertion(char const* msg, char const* file, int32_t line)

Callers 1

throwPluginErrorFunction · 0.85

Calls 3

getPluginLoggerFunction · 0.85
c_strMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected