MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / configure_tensor

Function configure_tensor

src/graph/Utils.cpp:220–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void configure_tensor(Tensor *tensor)
221{
222 if (tensor != nullptr && tensor->handle() == nullptr)
223 {
224 Target target = tensor->desc().target;
225 backends::IDeviceBackend &backend = backends::BackendRegistry::get().get_backend(target);
226 std::unique_ptr<ITensorHandle> handle = backend.create_tensor(*tensor);
227 ARM_COMPUTE_ERROR_ON_MSG(!handle, "Couldn't create backend handle!");
228 tensor->set_handle(std::move(handle));
229 }
230}
231
232} // namespace graph
233} // namespace arm_compute

Callers 2

mutateMethod · 0.85

Calls 3

handleMethod · 0.80
set_handleMethod · 0.80
create_tensorMethod · 0.45

Tested by

no test coverage detected