Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ SubSpec
Class
SubSpec
python/tests/test_spec.py:13–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
12
def
test_layer_spec_validate():
13
class
SubSpec(ctranslate2.specs.LayerSpec):
14
def
__init__(self):
15
self.a = np.ones([5], dtype=np.float16)
16
17
class
Spec(ctranslate2.specs.LayerSpec):
18
def
__init__(self):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
1
__init__
Method · 0.68