| 1296 | } |
| 1297 | |
| 1298 | bool Tensor::SharesBufferWith(const Tensor& b) const { |
| 1299 | return buf_ != nullptr && b.buf_ != nullptr && |
| 1300 | buf_->root_buffer() == b.buf_->root_buffer(); |
| 1301 | } |
| 1302 | |
| 1303 | string Tensor::DebugString(int num_values) const { |
| 1304 | return strings::StrCat("Tensor<type: ", DataTypeString(dtype()), |