| 26 | TensorResponse::Source::~Source() {} |
| 27 | |
| 28 | void TensorResponse::Clear() { |
| 29 | on_host_ = false; |
| 30 | device_ = nullptr; |
| 31 | alloc_attrs_ = AllocatorAttributes(); |
| 32 | allocator_ = nullptr; |
| 33 | already_used_ = false; |
| 34 | ClearTensor(); |
| 35 | } |
| 36 | |
| 37 | void TensorResponse::ClearTensor() { |
| 38 | meta_.Clear(); |