| 193 | } |
| 194 | |
| 195 | void DenseTensor::ShareBufferWith(const DenseTensor& tensor, bool only_buffer) { |
| 196 | holder_ = tensor.holder_; |
| 197 | if (!only_buffer) { |
| 198 | meta_.offset = tensor.meta().offset; |
| 199 | meta_.dtype = tensor.dtype(); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | #define LEGACY_DATA_MEMBER_FUNC_INSTANTIATION(dtype) \ |
| 204 | template PADDLE_API dtype* DenseTensor::mutable_data( \ |
no test coverage detected