File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments