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

Method request_sample

cpp/heimdall/column_view.hpp:125–129  ·  view source on GitHub ↗

* @brief Request the sample by the given index. * @param index Index of the sample. * @param options Fetch options. * @return Promise with the sample. */

Source from the content-addressed store, hash-verified

123 * @return Promise with the sample.
124 */
125 async::promise<nd::array> request_sample(int64_t index, storage::fetch_options options)
126 {
127 index = icm::parse_negative_index(index, samples_count());
128 return request_sample_(index, options);
129 }
130
131 /**
132 * @brief Request the sample by the given source shape.

Callers 3

request_sample_Method · 0.80
get_column_valueMethod · 0.80
request_dataFunction · 0.80

Calls 1

parse_negative_indexFunction · 0.85

Tested by

no test coverage detected