MCPcopy Create free account
hub / github.com/tensorflow/lingvo / GetCachedObject

Method GetCachedObject

lingvo/model_registry.py:248–260  ·  view source on GitHub ↗

Returns a ModelParams class object with the given `class_key`. To reuse the same object for given `class_key`, it uses functools.lru_cache annotation. Args: class_key: string key of the ModelParams subclass to return. Returns: A instance of `~.base_model_params._BaseMo

(cls, class_key)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetParamsMethod · 0.80

Calls 1

GetClassMethod · 0.80

Tested by

no test coverage detected