Skip to content

Commit 6cca508

Browse files
committed
update to version used for HLT test
1 parent 9a88d19 commit 6cca508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TensorRT/src/TRTClientFPGA.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void TRTClientFPGA<Client>::setup() {
3333
std::unique_ptr<nic::InferContext::Options> options;
3434
nic::InferContext::Options::Create(&options);
3535

36-
//options->SetBatchSize(batchSize_);
36+
options->SetBatchSize(batchSize_);
3737
for (const auto& output : context_->Outputs()) {
3838
options->AddRawResult(output);
3939
}
@@ -64,7 +64,7 @@ void TRTClientFPGA<Client>::getResults(const std::unique_ptr<nic::InferContext::
6464
size_t content_byte_size;
6565
result->GetRaw(0, &r0, &content_byte_size);
6666
const unsigned int *lVal = reinterpret_cast<const unsigned int*>(r0);
67-
memcpy(this->output_.data(),&lVal[0],content_byte_size);
67+
memcpy(this->output_.data(),&lVal[0],content_byte_size*batchSize_);
6868
//for(unsigned i1 = 0; i1 < noutput_; i1++) this->output_[i0*noutput_+i1] = lVal[i1]; //This should be replaced with a memcpy
6969
//}
7070
auto t3 = std::chrono::high_resolution_clock::now();

0 commit comments

Comments
 (0)