MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / pushBackMany

Method pushBackMany

python/mod_cvcuda/nvcv/TensorBatch.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void TensorBatch::pushBackMany(std::vector<std::shared_ptr<Tensor>> &tensorList)
164{
165 std::vector<nvcv::Tensor> nvcvTensors;
166 nvcvTensors.reserve(tensorList.size());
167 for (auto &tensor : tensorList)
168 {
169 m_list.push_back(tensor);
170 if (tensor)
171 nvcvTensors.push_back(tensor->impl());
172 else
173 nvcvTensors.push_back(nvcv::Tensor());
174 }
175 m_impl.pushBack(nvcvTensors.begin(), nvcvTensors.end());
176}
177
178void TensorBatch::popBack(int tensorCount)
179{

Callers 1

Calls 8

reserveMethod · 0.80
implMethod · 0.80
TensorClass · 0.70
sizeMethod · 0.45
push_backMethod · 0.45
pushBackMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected