| 166 | } |
| 167 | |
| 168 | std::unique_ptr<ITensorHandle> CLDeviceBackend::create_tensor(const Tensor &tensor) |
| 169 | { |
| 170 | // Get tensor descriptor |
| 171 | const TensorDescriptor &tensor_desc = tensor.desc(); |
| 172 | ARM_COMPUTE_ERROR_ON(tensor_desc.target != Target::CL); |
| 173 | |
| 174 | // Create backend tensor handle |
| 175 | TensorInfo info(tensor_desc.shape, 1, tensor_desc.data_type, tensor_desc.quant_info); |
| 176 | info.set_data_layout(tensor_desc.layout); |
| 177 | |
| 178 | return std::make_unique<CLTensorHandle>(info); |
| 179 | } |
| 180 | |
| 181 | std::unique_ptr<ITensorHandle> |
| 182 | CLDeviceBackend::create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords, bool extend_parent) |
no outgoing calls
no test coverage detected