(self, data_type: DataType)
| 481 | self.data_type = NUMPY_TYPE_TO_DATA_TYPE[ndarray.dtype] |
| 482 | |
| 483 | def astype(self, data_type: DataType) -> Tensor: |
| 484 | dtype = data_type.dtype |
| 485 | if self.data_type == DT_BF16: |
| 486 | self.ndarray = bf16_to_fp32(self.ndarray) |
| 487 | return UnquantizedTensor(self.ndarray.astype(dtype)) |
| 488 | |
| 489 | def to_ggml(self) -> UnquantizedTensor: |
| 490 | return self |
nothing calls this directly
no test coverage detected