(self, ndarray: NDArray, i2_scale: NDArray = None)
| 780 | |
| 781 | class UnquantizedTensor(Tensor): |
| 782 | def __init__(self, ndarray: NDArray, i2_scale: NDArray = None): |
| 783 | assert isinstance(ndarray, np.ndarray) |
| 784 | self.ndarray = ndarray |
| 785 | self.data_type = NUMPY_TYPE_TO_DATA_TYPE[ndarray.dtype] |
| 786 | self.i2_scale = i2_scale |
| 787 | |
| 788 | def astype(self, data_type: DataType) -> UnquantizedTensor: |
| 789 | dtype = data_type.dtype |
nothing calls this directly
no outgoing calls
no test coverage detected