The innermost values of the nested fixed size lists.
| 1863 | |
| 1864 | /// The innermost values of the nested fixed size lists. |
| 1865 | std::shared_ptr<Array> LeafValues(std::shared_ptr<Array> array) { |
| 1866 | while (array->type_id() == Type::FIXED_SIZE_LIST) { |
| 1867 | const auto& fsl = checked_cast<const FixedSizeListArray&>(*array); |
| 1868 | array = |
| 1869 | fsl.values()->Slice(fsl.value_offset(0), array->length() * fsl.value_length()); |
| 1870 | } |
| 1871 | return array; |
| 1872 | } |
| 1873 | |
| 1874 | template <typename T> |
| 1875 | void CheckToTensor(const std::shared_ptr<Array>& array, const std::vector<int64_t>& shape, |
no test coverage detected