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

Method dict_value

cpp/nd/array.hpp:937–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935
936template <typename I>
937dict array::concrete_holder_<I>::dict_value(int64_t index) const
938{
939 if constexpr (impl::has_value_member_function_v<I, dict>) {
940 ASSERT(impl_.dtype() == dtype::object);
941 return impl_.value(index);
942 } else {
943 throw invalid_operation("Can't convert array value to dict.");
944 }
945}
946
947template <typename I>
948array array::concrete_holder_<I>::get(int64_t index) const

Callers 5

nd_to_datumFunction · 0.80
meta_to_orderFunction · 0.80
operator[]Method · 0.80

Calls 3

invalid_operationClass · 0.70
dtypeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected