| 164 | } |
| 165 | |
| 166 | void 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 | |
| 175 | Literal::Literal(Literal&& other) : MutableLiteralBase() { |
| 176 | *this = std::move(other); |
nothing calls this directly
no test coverage detected