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

Method __call__

python/ctranslate2/specs/model_spec.py:85–88  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

83
84class FrozenMeta(type):
85 def __call__(self, *args, **kwargs):
86 instance = super().__call__(*args, **kwargs)
87 instance._frozen = True
88 return instance
89
90
91class FrozenAttr:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected