| 278 | } |
| 279 | |
| 280 | void TensorCopy(const DenseTensor& src, |
| 281 | const Place& dst_place, |
| 282 | DenseTensor* dst) { |
| 283 | TensorCopyImpl<DenseTensor>(src, dst_place, dst); |
| 284 | dst->set_strides(src.strides()); |
| 285 | } |
| 286 | void TensorCopy(const DenseTensor& src, |
| 287 | const Place& dst_place, |
| 288 | const phi::DeviceContext& ctx, |