MCPcopy Create free account
hub / github.com/NVIDIA/DALI / SetNext

Method SetNext

dali/pipeline/operator/sequence_shape.h:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 TensorListBuilder(TensorList<Backend> &tv) : tv_{tv} {} // NOLINT
236
237 void SetNext(const SliceView &view) {
238 assert(NextSampleIdx() < tv_.num_samples());
239 std::shared_ptr<void> ptr(view.ptr, [](void *) {}); // no deleter
240 tv_.SetSample(next_++, ptr, view.type_size * volume(view.shape), tv_.is_pinned(), view.shape,
241 tv_.type(), tv_.device_id(), tv_.order(), tv_.GetLayout());
242 }
243
244 int NextSampleIdx() const {
245 return next_;

Callers 3

broadcast_samplesFunction · 0.80
unfold_outer_dimsFunction · 0.80

Calls 6

volumeFunction · 0.85
SetSampleMethod · 0.80
num_samplesMethod · 0.45
typeMethod · 0.45
device_idMethod · 0.45
GetLayoutMethod · 0.45

Tested by

no test coverage detected