(self)
| 649 | description: str |
| 650 | |
| 651 | def load(self) -> Tensor: |
| 652 | ret = self._load() |
| 653 | # Should be okay if it maps to the same numpy type? |
| 654 | assert ret.data_type == self.data_type or (self.data_type.dtype == ret.data_type.dtype), \ |
| 655 | (self.data_type, ret.data_type, self.description) |
| 656 | return ret |
| 657 | |
| 658 | def astype(self, data_type: DataType) -> LazyTensor: |
| 659 | self.validate_conversion_to(data_type) |