MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / load

Method load

convert.py:530–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

528 description: str
529
530 def load(self) -> Tensor:
531 ret = self._load()
532 # Should be okay if it maps to the same numpy type?
533 assert ret.data_type == self.data_type or (self.data_type.dtype == ret.data_type.dtype), \
534 (self.data_type, ret.data_type, self.description)
535 return ret
536
537 def astype(self, data_type: DataType) -> LazyTensor:
538 self.validate_conversion_to(data_type)

Callers

nothing calls this directly

Calls 2

_loadMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected