24.02.1
|
Base class specifying the operator interface. More...
#include <IOperator.h>
Public Member Functions | |
IOperator (IContext *ctx) | |
Explict Operator Constructor. More... | |
virtual | ~IOperator () |
Destructor. More... | |
bool | is_valid () const |
Checks if an operator is valid. More... | |
virtual StatusCode | run (IQueue &queue, ITensorPack &tensors) |
Run the kernels contained in the function. More... | |
virtual StatusCode | run (ITensorPack &tensors) |
Run the kernels contained in the function. More... | |
virtual StatusCode | prepare (ITensorPack &tensors) |
Prepare the operator for execution. More... | |
virtual MemoryRequirements | workspace () const |
Return the memory requirements required by the workspace. More... | |
void | set_internal_operator (std::unique_ptr< experimental::IOperator > op) |
Additional Inherited Members | |
Data Fields inherited from AclOperator_ | |
arm_compute::detail::Header | header {arm_compute::detail::ObjectType::Operator, nullptr} |
Base class specifying the operator interface.
Definition at line 59 of file IOperator.h.
Explict Operator Constructor.
[in] | ctx | Context to be used by the operator |
|
virtual |
Destructor.
bool is_valid | ( | ) | const |
Checks if an operator is valid.
|
virtual |
Prepare the operator for execution.
Any one off pre-processing step required by the function is handled here
[in] | tensors | Vector that contains the preparation tensors. |
|
virtual |
Run the kernels contained in the function.
[in] | queue | Queue to use |
[in] | tensors | Vector that contains the tensors to operate on |
|
virtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on |
|
inline |
Definition at line 98 of file IOperator.h.
|
virtual |
Return the memory requirements required by the workspace.