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

Method load

tokenizer/convert/convert.py:651–656  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

649 description: str
650
651 def load(self) -> Tensor:
652 ret = self._load()
653 # Should be okay if it maps to the same numpy type?
654 assert ret.data_type == self.data_type or (self.data_type.dtype == ret.data_type.dtype), \
655 (self.data_type, ret.data_type, self.description)
656 return ret
657
658 def astype(self, data_type: DataType) -> LazyTensor:
659 self.validate_conversion_to(data_type)

Callers

nothing calls this directly

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected