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

Method erase

tensorflow/core/graph/edgeset.cc:52–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52EdgeSet::size_type EdgeSet::erase(key_type key) {
53 RegisterMutation();
54 auto s = get_set();
55 if (!s) {
56 for (int i = 0; i < kInline; i++) {
57 if (ptrs_[i] == key) {
58 size_t n = size();
59 ptrs_[i] = ptrs_[n - 1];
60 ptrs_[n - 1] = nullptr;
61 return 1;
62 }
63 }
64 return 0;
65 } else {
66 return s->erase(key);
67 }
68}
69
70} // namespace tensorflow

Callers 15

CleanupModelSessionMethod · 0.45
SparsifyGatherInternalFunction · 0.45
RemoveAttributeFunction · 0.45
RenameAttributeFunction · 0.45
RemoveAttributesFunction · 0.45
ReplaceSendRecvsFunction · 0.45
ConstructMPIResponseFunction · 0.45
PerformCollectiveOpFunction · 0.45
ConstructMPIResponseFunction · 0.45
PerformCollectiveOpFunction · 0.45

Calls 1

sizeFunction · 0.50

Tested by 15

EraseOutputKeyMethod · 0.36
UpdateRowFunction · 0.36
SetFieldMethod · 0.36
TearDownMethod · 0.36
EqualFunctionDefLibraryFunction · 0.36
EncapsulateFunction · 0.36
EqualFunctionDefLibraryFunction · 0.36
EncapsulateFunction · 0.36
ShapeAnnotationsMatchFunction · 0.36
TEST_FFunction · 0.36
DeallocateMethod · 0.36