diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-07-05 08:08:52 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-07-07 13:47:18 +0000 |
commit | 06ac6e438fc95aa7f8228be8217e0776d692b8e7 (patch) | |
tree | 30227e483c48f0a59bc3b364814e50e306d8ac63 /arm_compute/AclEntrypoints.h | |
parent | 45875943de2992731ce763a71ac65fb4943c71c8 (diff) | |
download | ComputeLibrary-06ac6e438fc95aa7f8228be8217e0776d692b8e7.tar.gz |
Add basic Operator interface
- C facing interfaces
- Activation layer descriptor
Partially Resolves: COMPMID-4512
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I8530748fff178ca46d61bf2e40d3e543e93f340b
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5908
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/AclEntrypoints.h')
-rw-r--r-- | arm_compute/AclEntrypoints.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/arm_compute/AclEntrypoints.h b/arm_compute/AclEntrypoints.h index cf4a237a44..ca3a911f5d 100644 --- a/arm_compute/AclEntrypoints.h +++ b/arm_compute/AclEntrypoints.h @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef ARM_COMPUTE_ACLENTRYPOINTS_H_ -#define ARM_COMPUTE_ACLENTRYPOINTS_H_ +#ifndef ARM_COMPUTE_ACL_ENTRYPOINTS_H_ +#define ARM_COMPUTE_ACL_ENTRYPOINTS_H_ #include "arm_compute/AclTypes.h" @@ -232,7 +232,35 @@ AclStatus AclPackTensors(AclTensorPack pack, AclTensor *tensors, int32_t *slot_i */ AclStatus AclDestroyTensorPack(AclTensorPack pack); +/** Eager execution of a given operator on a list of inputs and outputs + * + * @param[in] op Operator to execute + * @param[in] queue Queue to schedule the operator on + * @param[in,out] tensors A list of input and outputs tensors to execute the operator on + * + * @return Status Code + * + * Returns: + * - @ref AclSuccess if function was completed successfully + * - @ref AclOutOfMemory if there was a failure allocating memory resources + * - @ref AclUnsupportedTarget if the requested target is unsupported + * - @ref AclInvalidArgument if a given argument is invalid + * - @ref AclRuntimeError on any other runtime related error + */ +AclStatus AclRunOperator(AclOperator op, AclQueue queue, AclTensorPack tensors); + +/** Destroy a given operator object + * + * @param[in,out] op A valid operator object to destroy + * + * @return Status code + * + * Returns: + * - @ref AclSuccess if functions was completed successfully + * - @ref AclInvalidArgument if the provided context is invalid + */ +AclStatus AclDestroyOperator(AclOperator op); #ifdef __cplusplus } #endif /* __cplusplus */ -#endif /* ARM_COMPUTE_ACLENTRYPOINTS_H_ */ +#endif /* ARM_COMPUTE_ACL_ENTRYPOINTS_H_ */ |