| 54 | } |
| 55 | |
| 56 | void configure_all_tensors(Graph &g) |
| 57 | { |
| 58 | auto &tensors = g.tensors(); |
| 59 | |
| 60 | for (auto &tensor : tensors) |
| 61 | { |
| 62 | if (tensor && tensor->handle() == nullptr) |
| 63 | { |
| 64 | Target target = tensor->desc().target; |
| 65 | backends::IDeviceBackend &backend = backends::BackendRegistry::get().get_backend(target); |
| 66 | std::unique_ptr<ITensorHandle> handle = backend.create_tensor(*tensor); |
| 67 | ARM_COMPUTE_ERROR_ON_MSG(!handle, "Couldn't create backend handle!"); |
| 68 | tensor->set_handle(std::move(handle)); |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void allocate_all_input_tensors(INode &node) |
| 74 | { |
no test coverage detected