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

Method clear

samples/common/ErrorRecorder.h:68–80  ·  view source on GitHub ↗

Empty the errorStack.

Source from the content-addressed store, hash-verified

66
67 // Empty the errorStack.
68 void clear() noexcept final
69 {
70 try
71 {
72 // grab a lock so that there is no addition while clearing.
73 std::lock_guard<std::mutex> guard(mStackLock);
74 mErrorStack.clear();
75 }
76 catch (const std::exception& e)
77 {
78 sample::gLogFatal << "Internal Error: " << e.what() << std::endl;
79 }
80 };
81
82 //! Simple helper function that
83 bool empty() const noexcept

Callers 15

replace_with_coordconvacFunction · 0.45
update_preprocessorMethod · 0.45
replace_unsupported_opsFunction · 0.45
_do_graph_surgeryFunction · 0.45
HardmaxPluginCreatorMethod · 0.45
update_preprocessorMethod · 0.45
update_preprocessorMethod · 0.45
readCalibrationCacheMethod · 0.45
parseMethod · 0.45
releaseBlobMethod · 0.45
locateFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected