| 148 | } |
| 149 | |
| 150 | ArrayVector Datum::chunks() const { |
| 151 | if (!this->is_arraylike()) { |
| 152 | return {}; |
| 153 | } |
| 154 | if (this->is_array()) { |
| 155 | return {this->make_array()}; |
| 156 | } |
| 157 | return this->chunked_array()->chunks(); |
| 158 | } |
| 159 | |
| 160 | DeviceAllocationTypeSet Datum::device_types() const { |
| 161 | switch (kind()) { |