24.02
|
Context interface. More...
#include <IContext.h>
Public Member Functions | |
IContext (Target target) | |
virtual | ~IContext () |
Virtual Destructor. More... | |
Target | type () const |
Target type accessor. More... | |
void | inc_ref () const |
Increment context refcount. More... | |
void | dec_ref () const |
Decrement context refcount. More... | |
int | refcount () const |
Reference counter accessor. More... | |
bool | is_valid () const |
Checks if an object is valid. More... | |
virtual ITensorV2 * | create_tensor (const AclTensorDescriptor &desc, bool allocate)=0 |
Create a tensor object. More... | |
virtual IQueue * | create_queue (const AclQueueOptions *options)=0 |
Create a queue object. More... | |
virtual std::tuple< IOperator *, StatusCode > | create_activation (const AclTensorDescriptor &src, const AclTensorDescriptor &dst, const AclActivationDescriptor &act, bool is_validate)=0 |
Additional Inherited Members | |
Data Fields inherited from AclContext_ | |
arm_compute::detail::Header | header {arm_compute::detail::ObjectType::Context, nullptr} |
Context interface.
Definition at line 51 of file IContext.h.
Definition at line 54 of file IContext.h.
|
inlinevirtual |
Virtual Destructor.
Definition at line 58 of file IContext.h.
References AclContext_::header, arm_compute::detail::Invalid, and Header::type.
|
pure virtual |
Implemented in ClContext, and CpuContext.
|
pure virtual |
Create a queue object.
[in] | options | Queue options to be used |
Implemented in ClContext, and CpuContext.
|
pure virtual |
Create a tensor object.
[in] | desc | Descriptor to use |
[in] | allocate | Flag to allocate tensor |
Implemented in ClContext, and CpuContext.
Referenced by AclCreateTensor().
|
inline |
Decrement context refcount.
Definition at line 76 of file IContext.h.
Referenced by IQueue::~IQueue(), ITensorV2::~ITensorV2(), and TensorPack::~TensorPack().
|
inline |
Increment context refcount.
Definition at line 71 of file IContext.h.
Referenced by IQueue::IQueue(), ITensorV2::ITensorV2(), and TensorPack::TensorPack().
|
inline |
Checks if an object is valid.
Definition at line 92 of file IContext.h.
References arm_compute::detail::Context, AclContext_::header, and Header::type.
Referenced by arm_compute::detail::validate_internal_context().
|
inline |
Reference counter accessor.
Definition at line 84 of file IContext.h.
Referenced by AclDestroyContext(), AclSetClContext(), and ClContext::set_cl_ctx().
|
inline |
Target type accessor.
Definition at line 66 of file IContext.h.
Referenced by AclGetClContext(), AclGetClDevice(), AclGetClQueue(), AclSetClContext(), AclSetClQueue(), ClTensor::ClTensor(), and CpuTensor::CpuTensor().