24 #ifndef SRC_COMMON_ICONTEXT_H 25 #define SRC_COMMON_ICONTEXT_H 94 return header.
type == detail::ObjectType::Context;
114 bool is_validate) = 0;
118 mutable std::atomic<int> _refcount;
129 return static_cast<IContext *
>(ctx);
142 if(ctx ==
nullptr || !ctx->
is_valid())
145 return StatusCode::InvalidArgument;
147 return StatusCode::Success;
Base class specifying the queue interface.
Base class specifying the tensor interface.
StatusCode validate_internal_context(const IContext *ctx)
Check if an internal context is valid.
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
Log an error message to the logger.
virtual ~IContext()
Virtual Destructor.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void dec_ref() const
Decrement context refcount.
int refcount() const
Reference counter accessor.
T create_tensor(const TensorInfo &info, IRuntimeContext *ctx=nullptr)
Create and initialize a tensor of the given type.
Target type() const
Target type accessor.
arm_compute::detail::Header header
void inc_ref() const
Increment context refcount.
IContext * get_internal(AclContext ctx)
Extract internal representation of a Context.
bool is_valid() const
Checks if an object is valid.