| 133 | } |
| 134 | |
| 135 | PADDLE_API Tensor from_blob(void* data, |
| 136 | const phi::IntArray& shape, |
| 137 | phi::DataType dtype, |
| 138 | phi::DataLayout layout, |
| 139 | const phi::Place& place, |
| 140 | const Deleter& deleter) { |
| 141 | auto meta = |
| 142 | phi::DenseTensorMeta(dtype, common::make_ddim(shape.GetData()), layout); |
| 143 | return FromBlobImpl(data, meta, place, deleter); |
| 144 | } |
| 145 | |
| 146 | PADDLE_API Tensor from_blob(void* data, |
| 147 | const phi::IntArray& shape, |