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

Method data_iterator

cpp/nd/iterator.hpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19public:
20 data_iterator(std::shared_ptr<void> owner, std::span<const uint8_t> data, icm::shape shape, dtype dt)
21 : owner_(std::move(owner))
22 , data_(data)
23 , shape_(std::move(shape))
24 , dtype_(dt)
25 {
26 ASSERT(std::accumulate(shape_.begin(), shape_.end(), 1, std::multiplies{}) * dtype_bytes(dtype_) ==
27 data.size());
28 }
29
30 array operator*() const;
31

Callers

nothing calls this directly

Calls 4

dtype_bytesFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected