Compute Library
 19.08
GCTensorShift Class Reference

Basic function to execute shift function for tensor. More...

#include <GCTensorShift.h>

Collaboration diagram for GCTensorShift:
[legend]

Public Member Functions

void configure (IGCTensor *input)
 Initialise the kernel's input, output. More...
 
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction ()
 Default constructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to execute shift function for tensor.

This function applies to fix alignment issue on OpenGL ES:

Note
This alignment issue is introduced by limits of compute shader which requires 32/64/128bit alignment for data access on OpenGL ES

Definition at line 41 of file GCTensorShift.h.

Member Function Documentation

◆ configure()

void configure ( IGCTensor input)

Initialise the kernel's input, output.

Parameters
[in,out]inputSource tensor. Data types supported: F16/F32.

Definition at line 35 of file GCTensorShift.cpp.

36 {
37  auto k = arm_compute::support::cpp14::make_unique<GCTensorShiftKernel>();
38  k->configure(input);
39  _kernel = std::move(k);
40 }

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