41 return &_allocator.
info();
46 return &_allocator.
info();
51 return _allocator.
data();
74 uint8_t *GCTensor::do_map(
bool blocking)
76 return _allocator.
map(blocking);
79 void GCTensor::do_unmap()
uint8_t * map(bool blocking)
Enqueue a map operation of the allocated buffer on the given queue.
void associate_memory_group(IMemoryGroup *memory_group) override
Associates a memory managable object with the memory group that manages it.
void map(bool blocking=true)
Map on an allocated buffer.
void set_associated_memory_group(IMemoryGroup *associated_memory_group)
Associates the tensor with a memory group.
void unmap()
Unmap an allocated and mapped buffer.
void unmap()
Enqueue an unmap operation of the allocated buffer on the given queue.
GCTensor(IRuntimeContext *ctx=nullptr)
Default constructor.
Copyright (c) 2017-2021 Arm Limited.
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. ...
uint8_t * data()
Interface to be implemented by the child class to return the pointer to the mapped data...
GLuint get_gl_ssbo_name() const
Get the OpenGL ES buffer object name.
TensorInfo & info()
Return a reference to the tensor's metadata.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
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.