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

Method ClTensor

src/gpu/cl/ClTensor.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace opencl
33{
34ClTensor::ClTensor(IContext *ctx, const AclTensorDescriptor &desc) : ITensorV2(ctx), _legacy_tensor()
35{
36 ARM_COMPUTE_ASSERT((ctx != nullptr) && (ctx->type() == Target::GpuOcl));
37 _legacy_tensor = std::make_unique<CLTensor>();
38 _legacy_tensor->allocator()->init(arm_compute::detail::convert_to_legacy_tensor_info(desc));
39}
40
41void *ClTensor::map()
42{

Callers

nothing calls this directly

Calls 4

typeMethod · 0.45
initMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected