(self, ndarray: NDArray)
| 597 | |
| 598 | class UnquantizedTensor(Tensor): |
| 599 | def __init__(self, ndarray: NDArray) -> None: |
| 600 | assert isinstance(ndarray, np.ndarray) |
| 601 | self.ndarray = ndarray |
| 602 | self.data_type = NUMPY_TYPE_TO_DATA_TYPE[ndarray.dtype] |
| 603 | |
| 604 | def astype(self, data_type: DataType) -> Tensor: |
| 605 | dtype = data_type.dtype |
nothing calls this directly
no outgoing calls
no test coverage detected