(self)
| 835 | description: str |
| 836 | |
| 837 | def load(self) -> Tensor: |
| 838 | ret = self._load() |
| 839 | # Should be okay if it maps to the same numpy type? |
| 840 | assert ret.data_type == self.data_type or (self.data_type.dtype == ret.data_type.dtype), \ |
| 841 | (self.data_type, ret.data_type, self.description) |
| 842 | return ret |
| 843 | |
| 844 | def astype(self, data_type: DataType) -> LazyTensor: |
| 845 | self.validate_conversion_to(data_type) |