| 24 | namespace cl { |
| 25 | |
| 26 | Tensor::Tensor(cl_mem memory, int width, int height, int channels, |
| 27 | enum DataType data_type, TensorStorageType storage_type) |
| 28 | : memory_(memory), |
| 29 | width_(width), |
| 30 | height_(height), |
| 31 | channels_(channels), |
| 32 | data_type_(data_type), |
| 33 | storage_type_(storage_type) {} |
| 34 | |
| 35 | Tensor::Tensor(Tensor&& tensor) |
| 36 | : memory_(tensor.memory_), |