Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ dtype
Method
dtype
python/ctranslate2/specs/model_spec.py:683–684 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
681
682
@property
683
def
dtype(self) -> str:
684
return
self.array.dtype.name
685
686
def
numpy(self) -> np.ndarray:
687
return
self.array
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected