(self, data_type: DataType)
| 550 | return LazyTensor(load, self.shape[::-1], self.data_type, f'transpose {self.description}') |
| 551 | |
| 552 | def validate_conversion_to(self, data_type: DataType) -> None: |
| 553 | if data_type != self.data_type and data_type.name not in self.data_type.valid_conversions: |
| 554 | raise ValueError(f'Cannot validate conversion from {self.data_type} to {data_type}.') |
| 555 | |
| 556 | |
| 557 | LazyModel: TypeAlias = 'dict[str, LazyTensor]' |