Compute Library
 21.05
IOperator Class Referenceabstract

Base class for all async functions. More...

#include <IOperator.h>

Public Member Functions

virtual ~IOperator ()=default
 Destructor. More...
 
virtual void run (ITensorPack &tensors)=0
 Run the kernels contained in the function. More...
 
virtual void prepare (ITensorPack &constants)=0
 Prepare the function for executing. More...
 
virtual MemoryRequirements workspace () const =0
 Return the memory requirements required by the workspace. More...
 

Detailed Description

Base class for all async functions.

Definition at line 37 of file IOperator.h.

Constructor & Destructor Documentation

◆ ~IOperator()

virtual ~IOperator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ prepare()

virtual void prepare ( ITensorPack constants)
pure virtual

Prepare the function for executing.

Any one off pre-processing step required by the function is handled here

Parameters
[in]constantsVector that contains the constants tensors.
Note
Prepare stage might not need all the function's buffers' backing memory to be available in order to execute

Implemented in CpuDepthwiseConvolution, CpuDepthwiseConvolutionAssemblyDispatch, INEOperator, CpuScale, and ICLOperator.

◆ run()

◆ workspace()

virtual MemoryRequirements workspace ( ) const
pure virtual

Return the memory requirements required by the workspace.

Implemented in CpuDepthwiseConvolutionAssemblyDispatch, CpuSoftmaxGeneric< IS_LOG >, ClSoftmax, INEOperator, and ICLOperator.


The documentation for this class was generated from the following file: