MCPcopy Create free account
hub / github.com/apple/coremltools / offset_at

Method offset_at

deps/pybind11/include/pybind11/numpy.h:993–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991 /// May throw if the index would lead to out of bounds access.
992 template <typename... Ix>
993 ssize_t offset_at(Ix... index) const {
994 if ((ssize_t) sizeof...(index) > ndim()) {
995 fail_dim_check(sizeof...(index), "too many indices for an array");
996 }
997 return byte_offset(ssize_t(index)...);
998 }
999
1000 ssize_t offset_at() const { return 0; }
1001

Callers 5

test_index_offsetFunction · 0.80
dataFunction · 0.80
offset_atFunction · 0.80
offset_at_tFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_index_offsetFunction · 0.64
dataFunction · 0.64
offset_atFunction · 0.64
offset_at_tFunction · 0.64