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

Method GetSlice

lingvo/core/nested_map.py:259–274  ·  view source on GitHub ↗

Returns a copy of self containing only entries matching `keys`. Note: This function permits lingvo-nestedmap-style nested keys such as `m.foo[20].bar`, similar to the Set and Get methods. Args: keys: an iterable of string keys to be selected out. Returns: A subset of

(self, keys: Iterable[str])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

testGetSliceMethod · 0.95
testGetSliceArrayMethod · 0.95
GetIdsMapMethod · 0.80
SliceEmbeddingIdsMethod · 0.80
LookupMethod · 0.80
_LookupImplMethod · 0.80

Calls 3

SetMethod · 0.95
GetItemMethod · 0.95
NestedMapClass · 0.85

Tested by 2

testGetSliceMethod · 0.76
testGetSliceArrayMethod · 0.76