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

Method TransformWithKey

lingvo/core/nested_map.py:474–478  ·  view source on GitHub ↗

Returns a copy of this `.NestedMap` with fn applied on each key/value.

(
      self: NestedMapT, fn: Callable[[str, Any], Any]
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

LookupMethod · 0.80
TransformMethod · 0.80
_BeamSearchStepMethod · 0.80
_GetShardedBatchMethod · 0.80
ComputeGradientsFunction · 0.80
_PadToBatchSizeMethod · 0.80

Calls 1

_RecursiveMapMethod · 0.95

Tested by

no test coverage detected