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

Function dump

samples/common/sampleReporting.cpp:533–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531{
532template <typename ContextType>
533void dump(std::unique_ptr<ContextType> const& context, std::unique_ptr<Bindings> const& binding,
534 ReportingOptions const& reporting, int32_t batch)
535{
536 if (!context)
537 {
538 sample::gLogError << "Empty context! Skip printing outputs." << std::endl;
539 return;
540 }
541 if (reporting.output)
542 {
543 dumpOutputs(*context, *binding, sample::gLogInfo);
544 }
545 if (reporting.dumpRawBindings)
546 {
547 dumpRawBindingsToFiles(*context, *binding, sample::gLogInfo);
548 }
549 if (!reporting.exportOutput.empty())
550 {
551 exportJSONOutput(*context, *binding, reporting.exportOutput, batch);
552 }
553}
554} // namespace details
555
556void printOutput(ReportingOptions const& reporting, InferenceEnvironment const& iEnv, int32_t batch)

Callers 1

printOutputFunction · 0.85

Calls 4

dumpOutputsFunction · 0.85
dumpRawBindingsToFilesFunction · 0.85
exportJSONOutputFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected