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

Method CpuTensor

src/cpu/CpuTensor.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace cpu
31{
32CpuTensor::CpuTensor(IContext *ctx, const AclTensorDescriptor &desc) : ITensorV2(ctx), _legacy_tensor()
33{
34 ARM_COMPUTE_ASSERT((ctx != nullptr) && (ctx->type() == Target::Cpu));
35 _legacy_tensor = std::make_unique<Tensor>();
36 _legacy_tensor->allocator()->init(arm_compute::detail::convert_to_legacy_tensor_info(desc));
37}
38
39void *CpuTensor::map()
40{

Callers

nothing calls this directly

Calls 4

typeMethod · 0.45
initMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected