MCPcopy Create free account
hub / github.com/microsoft/BitNet / load

Method load

utils/convert-ms-to-gguf-bitnet.py:837–842  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

835 description: str
836
837 def load(self) -> Tensor:
838 ret = self._load()
839 # Should be okay if it maps to the same numpy type?
840 assert ret.data_type == self.data_type or (self.data_type.dtype == ret.data_type.dtype), \
841 (self.data_type, ret.data_type, self.description)
842 return ret
843
844 def astype(self, data_type: DataType) -> LazyTensor:
845 self.validate_conversion_to(data_type)

Callers

nothing calls this directly

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected