MCPcopy Create free account
hub / github.com/activeloopai/deeplake / sample_range

Method sample_range

cpp/deeplake_core/sample_range.hpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14public:
15 sample_range(const batch& batch, int64_t begin, int64_t end)
16 : batch_(&batch), indices_(icm::index_mapping_t<int64_t>::slice({begin, end, 1L}))
17 {
18 }
19
20 explicit sample_range(const batch& batch)
21 : batch_(&batch), indices_(icm::index_mapping_t<int64_t>::trivial(batch.size()))

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected