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

Function InsertIfNotPresent

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

Source from the content-addressed store, hash-verified

125// key-value pair was inserted; returns false if the key was already present.
126template <class Collection>
127bool InsertIfNotPresent(Collection* const collection,
128 const typename Collection::value_type& vt) {
129 return collection->insert(vt).second;
130}
131
132// Same as above except the key and value are passed separately.
133template <class Collection>

Callers 15

AddAttrForArgMethod · 0.85
CodeMethod · 0.85
HandleConditionalMethod · 0.85
ValidateArgFunction · 0.85
ValidateOpDefFunction · 0.85
RegisterAlreadyLockedMethod · 0.85
ValidateNodeDefFunction · 0.85
AddAndDedupFanoutsMethod · 0.85
AddFaninsInternalMethod · 0.85
GetNodeNamesSetFunction · 0.85
AttrTypeMapForOpFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by 1

TESTFunction · 0.68