24.02.1
|
CPU context implementation class. More...
#include <CpuContext.h>
Public Member Functions | |
CpuContext (const AclContextOptions *options) | |
Default Constructor. More... | |
const CpuCapabilities & | capabilities () const |
Cpu Capabilities accessor. More... | |
AllocatorWrapper & | allocator () |
Backing memory allocator accessor. More... | |
ITensorV2 * | create_tensor (const AclTensorDescriptor &desc, bool allocate) override |
Create a tensor object. More... | |
IQueue * | create_queue (const AclQueueOptions *options) override |
Create a queue object. More... | |
std::tuple< IOperator *, StatusCode > | create_activation (const AclTensorDescriptor &src, const AclTensorDescriptor &dst, const AclActivationDescriptor &act, bool is_validate) override |
Public Member Functions inherited from IContext | |
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... | |
Additional Inherited Members | |
Data Fields inherited from AclContext_ | |
arm_compute::detail::Header | header {arm_compute::detail::ObjectType::Context, nullptr} |
CPU context implementation class.
Definition at line 43 of file CpuContext.h.
|
explicit |
Default Constructor.
[in] | options | Creational options |
Definition at line 149 of file CpuContext.cpp.
References AclContextOptions::allocator, AclContextOptions::capabilities, and AclContextOptions::max_compute_units.
AllocatorWrapper & allocator | ( | ) |
Backing memory allocator accessor.
Definition at line 164 of file CpuContext.cpp.
const CpuCapabilities & capabilities | ( | ) | const |
Cpu Capabilities accessor.
Definition at line 159 of file CpuContext.cpp.
Referenced by arm_compute::test::validation::TEST_CASE().
|
overridevirtual |
Implements IContext.
Definition at line 59 of file CpuActivation.cpp.
References ARM_COMPUTE_LOG_ERROR_ACL, arm_compute::detail::convert_to_activation_info(), arm_compute::detail::convert_to_legacy_tensor_info(), arm_compute::test::validation::dst, arm_compute::test::validation::info, arm_compute::OutOfMemory, TensorInfo::set_is_resizable(), arm_compute::test::validation::src, arm_compute::test::validation::src_info, arm_compute::Success, arm_compute::UnsupportedConfig, and CpuActivation::validate().
|
overridevirtual |
Create a queue object.
[in] | options | Queue options to be used |
Implements IContext.
Definition at line 179 of file CpuContext.cpp.
|
overridevirtual |
Create a tensor object.
[in] | desc | Descriptor to use |
[in] | allocate | Flag to allocate tensor |
Implements IContext.
Definition at line 169 of file CpuContext.cpp.
References tensor.