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

Method GetItem

lingvo/core/nested_map.py:214–239  ·  view source on GitHub ↗

Gets the value for the nested `key`. Names with underscores will be considered as one key. Args: key: str of the form `([A-Za-z_][A-Za-z0-9_]*)(.[A-Za-z_][A-Za-z0-9_]*)*.`. Returns: The value for the given nested key. Raises: KeyError: if a key is not pr

(self, key: str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

testNestedMapGetItemMethod · 0.95
GetMethod · 0.95
GetSliceMethod · 0.95
_MaybeFFLayerAdapterMethod · 0.80
_MoeOrFFLayerMethod · 0.80
SetShapeMethod · 0.80

Calls 2

SquareBracketIndexMethod · 0.95
splitMethod · 0.80

Tested by 2

testNestedMapGetItemMethod · 0.76