25 #ifndef ARM_COMPUTE_GCTENSOR_H 26 #define ARM_COMPUTE_GCTENSOR_H 33 class ITensorAllocator;
35 class IRuntimeContext;
77 void map(
bool blocking =
true);
90 uint8_t *
buffer()
const override;
96 uint8_t *do_map(
bool blocking)
override;
97 void do_unmap()
override;
void associate_memory_group(IMemoryGroup *memory_group) override
Associates a memory managable object with the memory group that manages it.
Basic implementation of a GLES memory tensor allocator.
Interface for GLES Compute tensor.
GCTensor & operator=(const GCTensor &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers) ...
GCTensor(IRuntimeContext *ctx=nullptr)
Default constructor.
Interface for OpenGL ES tensor.
Copyright (c) 2017-2021 Arm Limited.
virtual ~GCTensor()=default
Virtual destructor.
GLuint gc_buffer() const override
Interface to be implemented by the child class to return the tensor's gles compute buffer id...
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory. ...
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
Interface of an object than can be memory managed.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
Store the tensor's metadata.
Interface to allocate tensors.
ITensorAllocator * allocator()
Return a pointer to the tensor's allocator.