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

Function FindOrNull

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

Source from the content-addressed store, hash-verified

36// exists, or NULL otherwise.
37template <class Collection>
38const typename Collection::value_type::second_type* FindOrNull(
39 const Collection& collection,
40 const typename Collection::value_type::first_type& key) {
41 typename Collection::const_iterator it = collection.find(key);
42 if (it == collection.end()) {
43 return 0;
44 }
45 return &it->second;
46}
47
48// Same as above but returns a pointer to the non-const value.
49template <class Collection>

Callers 15

ComputeMethod · 0.85
ArgTypeNameFunction · 0.85
FindInstructionMethod · 0.85
ParseInstructionListMethod · 0.85
ParseComputationNameMethod · 0.85
BuildMethod · 0.85
ThunkScheduleMethod · 0.85
GetApiDefMethod · 0.85
SHARED_LOCKS_REQUIREDMethod · 0.85
SHARED_LOCKS_REQUIREDMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68