24 #ifndef ARM_COMPUTE_IGCTENSOR_H 25 #define ARM_COMPUTE_IGCTENSOR_H 62 void map(
bool blocking =
true);
71 uint8_t *
buffer()
const override;
97 virtual uint8_t *do_map(
bool blocking) = 0;
103 virtual void do_unmap() = 0;
107 bool _needs_shifting;
void map(bool blocking=true)
Map on an allocated buffer.
virtual ~IGCTensor()=default
Virtual destructor.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory. ...
void unmap()
Unmap an allocated and mapped buffer.
void clear()
Clear the contents of the tensor synchronously.
Interface for GLES Compute tensor.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
virtual GLuint gc_buffer() const =0
Interface to be implemented by the child class to return the tensor's gles compute buffer id...
void set_needs_shifting(bool needs_shifting)
Set the flag indicating whether or not a tensor needs shifting.
bool needs_shifting() const
Flag indicating whether the tensor has been left aligned by a kernel and therefore needs shifting...
Wrapper to configure the Khronos EGL and OpenGL ES C header.
IGCTensor()
Default constructor.
IGCTensor & operator=(const IGCTensor &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers) ...