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

Method DeallocateBuffers

tensorflow/compiler/xla/literal.cc:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void Literal::DeallocateBuffers() {
167 root_piece_->ForEachMutableSubpiece(
168 [&](const ShapeIndex& index, Piece* piece) {
169 if (piece->buffer() != nullptr) {
170 tensorflow::port::AlignedFree(piece->buffer());
171 }
172 });
173}
174
175Literal::Literal(Literal&& other) : MutableLiteralBase() {
176 *this = std::move(other);

Callers

nothing calls this directly

Calls 3

AlignedFreeFunction · 0.50
bufferMethod · 0.45

Tested by

no test coverage detected