MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / __init__

Method __init__

tokenizer/convert/convert.py:599–602  ·  view source on GitHub ↗
(self, ndarray: NDArray)

Source from the content-addressed store, hash-verified

597
598class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected