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

Method get

cpp/nd/impl/full_buffer_array.hpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 nd::array get(int64_t index) const
80 {
81 ASSERT(header_ != nullptr);
82 auto buffer = data_.chunk(header_->offsets_[index] + header_->data_offset_,
83 header_->offsets_[index + 1] + header_->data_offset_);
84 return header_->get(buffer, dtype_, index);
85 }
86
87 icm::shape shape() const noexcept
88 {

Callers 1

getMethod · 0.45

Calls 1

chunkMethod · 0.80

Tested by

no test coverage detected