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

Method __init__

python/tests/test_spec.py:14–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12def 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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected