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

Function ExtractLearnerFromLegacyParams

lingvo/core/learner.py:526–551  ·  view source on GitHub ↗

Extracts legacy learner params from 'tp' to a Learner params. Args: tp: BaseTask training params (p.train). Its legacy params will be cleared to be None after the conversion. cls: Learner class where we set the params. remove_legacy_params: Whether to keep the legacy hparams. De

(tp, cls=Learner, remove_legacy_params=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

ToTextMethod · 0.95
IterParamsMethod · 0.80
splitMethod · 0.80
ParamsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…