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

Method Visit

lingvo/core/hyperparams.py:686–770  ·  view source on GitHub ↗

Recursively visits objects within this Params instance. Visit can traverse Params, lists, tuples, dataclasses, and namedtuples. By default, visit_fn is called on any object we don't know how to traverse into, like an integer or a string. enter_fn and exit_fn are called on objects w

(self,
            visit_fn: Callable[[str, Any], None],
            enter_fn: Optional[Callable[[str, Any], bool]] = None,
            exit_fn: Optional[Callable[[str, Any], None]] = None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

ToTextMethod · 0.95
testVisitEnterFalseMethod · 0.95
testVisitEnterTrueMethod · 0.95
testVisitTypesMethod · 0.95

Calls

no outgoing calls

Tested by 3

testVisitEnterFalseMethod · 0.76
testVisitEnterTrueMethod · 0.76
testVisitTypesMethod · 0.76