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

Method __init__

python/ctranslate2/specs/model_spec.py:295–298  ·  view source on GitHub ↗

Initializes the configuration with a set of parameters.

(self, **kwargs)

Source from the content-addressed store, hash-verified

293 """Base class for model configurations."""
294
295 def __init__(self, **kwargs):
296 """Initializes the configuration with a set of parameters."""
297 for key, value in kwargs.items():
298 setattr(self, key, value)
299
300 def to_dict(self):
301 """Returns the configuration as a dictionary."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected