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

Method eval

cpp/nd/impl/stacked_array.hpp:269–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 array eval() const
270 {
271 auto volume = std::accumulate(shape_.begin(), shape_.end(), 1L, std::multiplies<int64_t>());
272 auto v = icm::vector<T>(volume);
273 copy_data(base::span_cast<uint8_t>(std::span<T>(v.data(), v.size())));
274 return nd::adapt(std::move(v), icm::shape(shape_));
275 }
276
277 void copy_data(std::span<uint8_t> buffer) const
278 {

Callers

nothing calls this directly

Calls 6

adaptFunction · 0.85
shapeClass · 0.85
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected