MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FindPtrOrNull

Function FindPtrOrNull

tensorflow/core/lib/gtl/map_util.h:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65// to a NULL value.
66template <class Collection>
67typename Collection::value_type::second_type FindPtrOrNull(
68 const Collection& collection,
69 const typename Collection::value_type::first_type& key) {
70 typename Collection::const_iterator it = collection.find(key);
71 if (it == collection.end()) {
72 return typename Collection::value_type::second_type();
73 }
74 return it->second;
75}
76
77// Returns a const reference to the value associated with the given key if it
78// exists, otherwise returns a const reference to the provided default value.

Callers 15

FindWorkerChannelMethod · 0.85
TranslateTaskMethod · 0.85
GetAttrToInputsMapFunction · 0.85
CreateFromProtoMethod · 0.85
FindOrCreateMethod · 0.85
ComputeArgSignatureFunction · 0.85
OpDefCompatibleFunction · 0.85
DoLookupMethod · 0.85
DoDeleteMethod · 0.85
FindDeviceByNameMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected