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

Method set_cl_ctx

src/gpu/cl/ClContext.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool ClContext::set_cl_ctx(::cl::Context ctx)
79{
80 if (this->refcount() == 0)
81 {
82 _cl_ctx = ctx;
83 CLScheduler::get().set_context(ctx);
84 return true;
85 }
86 return false;
87}
88
89ITensorV2 *ClContext::create_tensor(const AclTensorDescriptor &desc, bool allocate)
90{

Callers 1

AclSetClContextFunction · 0.45

Calls 2

refcountMethod · 0.80
set_contextMethod · 0.45

Tested by

no test coverage detected