| 516 | } |
| 517 | |
| 518 | bool operator()(TrtCudaStream& stream) const |
| 519 | { |
| 520 | try |
| 521 | { |
| 522 | bool const result = mContext.enqueue(mBatch, mBuffers, stream.get(), nullptr); |
| 523 | // Collecting layer timing info from current profile index of execution context |
| 524 | if (mContext.getProfiler() && !mContext.getEnqueueEmitsProfile() && !mContext.reportToProfiler()) |
| 525 | { |
| 526 | gLogWarning << "Failed to collect layer timing info from previous enqueue()" << std::endl; |
| 527 | } |
| 528 | return result; |
| 529 | } |
| 530 | catch (const std::exception&) |
| 531 | { |
| 532 | return false; |
| 533 | } |
| 534 | return false; |
| 535 | } |
| 536 | |
| 537 | private: |
| 538 | void** mBuffers{}; |
nothing calls this directly
no test coverage detected