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

Method value

cpp/nd/impl/sliced_array.hpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 value_type value(int64_t index) const
249 {
250 if (!needs_resize_) {
251 return a_.value<value_type>(index);
252 }
253 auto resizer = data_resizer<I>(shape_, a_.shape(), slices_);
254 return a_.value<value_type>(resizer.compute_index(index));
255 }
256
257 nd::array get(int64_t index) const
258 {

Callers

nothing calls this directly

Calls 2

compute_indexMethod · 0.80
shapeMethod · 0.45

Tested by

no test coverage detected