File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
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 (1 ); // batchSize_);
36+ options->SetBatchSize (batchSize_);
3737 for (const auto & output : context_->Outputs ()) {
3838 options->AddRawResult (output);
3939 }
@@ -45,11 +45,10 @@ void TRTClientFPGA<Client>::setup() {
4545 nicinput_->Reset ();
4646
4747 auto t2 = std::chrono::high_resolution_clock::now ();
48- std::vector<int64_t > input_shape;
4948 for (unsigned i0 = 0 ; i0 < batchSize_; i0++) {
5049 nic::Error err1 = nicinput_->SetRaw (reinterpret_cast <const uint8_t *>(&(this ->input_ [i0*ninput_])), ninput_ * sizeof (unsigned short ));
5150 }
52- // nic::Error err1 = nicinput_->SetRaw(reinterpret_cast<const uint8_t*>(&( this->input_[0] )), batchSize_*ninput_ * sizeof(unsigned short));
51+ // nic::Error err1 = nicinput_->SetRaw(reinterpret_cast<const uint8_t*>(this->input_.data( )), batchSize_*ninput_ * sizeof(unsigned short));
5352 auto t3 = std::chrono::high_resolution_clock::now ();
5453 edm::LogInfo (" TRTClientFPGA" ) << " Image array time: " << std::chrono::duration_cast<std::chrono::microseconds>(t3-t2).count ();
5554}
You can’t perform that action at this time.
0 commit comments