MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / to

Method to

python/ctranslate2/specs/model_spec.py:643–646  ·  view source on GitHub ↗
(self, dtype: str)

Source from the content-addressed store, hash-verified

641 raise NotImplementedError()
642
643 def to(self, dtype: str) -> "Variable":
644 if dtype == self.dtype:
645 return self
646 return self._to(dtype)
647
648 @abc.abstractmethod
649 def numpy(self) -> np.ndarray:

Callers 7

register_storage_viewFunction · 0.45
_quantizeMethod · 0.45
_toMethod · 0.45
_toMethod · 0.45

Calls 1

_toMethod · 0.95

Tested by 3