MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / operator()

Method operator()

samples/common/sampleInference.cpp:557–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555 }
556
557 bool operator()(TrtCudaStream& stream) const
558 {
559 try
560 {
561 bool const result = mContext.enqueueV3(stream.get());
562 // Collecting layer timing info from current profile index of execution context
563 if (mContext.getProfiler() && !mContext.getEnqueueEmitsProfile() && !mContext.reportToProfiler())
564 {
565 gLogWarning << "Failed to collect layer timing info from previous enqueueV3()" << std::endl;
566 }
567 return result;
568 }
569 catch (const std::exception&)
570 {
571 return false;
572 }
573 return false;
574 }
575
576private:
577 Bindings const& mBindings;

Callers

nothing calls this directly

Calls 5

enqueueV3Method · 0.80
getProfilerMethod · 0.80
reportToProfilerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected