Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ __init__
Method
__init__
python/ctranslate2/specs/model_spec.py:675–676 ·
view source on GitHub ↗
(self, array)
Source
from the content-addressed store, hash-verified
673
""
"Model variable as a Numpy array."
""
674
675
def
__init__(self, array):
676
self.array = array
677
678
@property
679
def
shape(self) -> List[int]:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected