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

Method init_tensor

examples/cl_cache.cpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 tensor.unmap();
137 }
138 void init_tensor(const TensorShape shape, CLTensor &tensor, DataType type, DataLayout layout)
139 {
140 tensor.allocator()->init(TensorInfo(shape, 1, type).set_data_layout(layout));
141 }
142
143 CLTensor tensor_nchw{};
144 CLTensor tensor_nhwc{};

Callers 2

do_setupMethod · 0.45
do_setupMethod · 0.45

Calls 3

TensorInfoClass · 0.50
initMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected