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

Method Reset

tensorflow/core/lib/core/arena.cc:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89// ----------------------------------------------------------------------
90
91void Arena::Reset() {
92 FreeBlocks();
93 freestart_ = first_blocks_[0].mem;
94 remaining_ = first_blocks_[0].size;
95
96 // There is no guarantee the first block is properly aligned, so
97 // enforce that now.
98 CHECK(SatisfyAlignment(kDefaultAlignment));
99
100 freestart_when_empty_ = freestart_;
101}
102
103// ----------------------------------------------------------------------
104// Arena::MakeNewBlock()

Callers 1

MakeRandomBitmapFunction · 0.45

Calls

no outgoing calls

Tested by 1

MakeRandomBitmapFunction · 0.36