23.11
|
Go to the documentation of this file.
36 _mapping = do_map(q, blocking);
48 std::memset(
static_cast<void *
>(_mapping), 0, this->
info()->total_size());
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue.
ICLTensor()
Default constructor.
Copyright (c) 2017-2023 Arm Limited.
void clear(cl::CommandQueue &q)
Clear the contents of the tensor synchronously.