| 183 | } |
| 184 | |
| 185 | void XrtBuffer::Delete() { |
| 186 | if (handle_.valid()) { |
| 187 | handle_.context()->EnqueueOp("XRTReleaseAllocationHandle", {&handle_}, |
| 188 | /*output_arity=*/0, |
| 189 | /*attrs=*/{}, handle_.device_id()); |
| 190 | handle_ = XrtTensorHandle(); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | xla::StatusOr<std::vector<std::shared_ptr<XrtBuffer>>> |
| 195 | XrtBuffer::DestructureTuple() { |