| 163 | } |
| 164 | |
| 165 | ArrayVector Datum::chunks() const { |
| 166 | if (!this->is_arraylike()) { |
| 167 | return {}; |
| 168 | } |
| 169 | if (this->is_array()) { |
| 170 | return {this->make_array()}; |
| 171 | } |
| 172 | return this->chunked_array()->chunks(); |
| 173 | } |
| 174 | |
| 175 | DeviceAllocationTypeSet Datum::device_types() const { |
| 176 | switch (kind()) { |