| 81 | } |
| 82 | |
| 83 | void ShapedBuffer::clear() { |
| 84 | for (auto& pair : buffers_) { |
| 85 | // A default constructed DeviceMemoryBase is a null pointer. |
| 86 | pair.second = se::DeviceMemoryBase(); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | string ShapedBuffer::ToString() const { |
| 91 | string s = absl::StrCat( |