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

Function create_tensor

tests/Utils.h:431–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 */
430template <typename T>
431inline T create_tensor(const TensorInfo &info, IRuntimeContext *ctx = nullptr)
432{
433 T tensor(ctx);
434 tensor.allocator()->init(info);
435 return tensor;
436}
437
438/** Create and initialize a tensor of the given type.
439 *

Callers 2

add_nodeMethod · 0.85
add_connectionMethod · 0.85

Calls 3

QuantizationInfoClass · 0.50
initMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected