29 : _mapping(nullptr), _needs_shifting(false)
35 _mapping = do_map(blocking);
47 std::memset(static_cast<void *>(_mapping), 0, this->
info()->total_size());
58 return _needs_shifting;
void map(bool blocking=true)
Map on an allocated buffer.
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.
Copyright (c) 2017-2021 Arm Limited.
void set_needs_shifting(bool needs_shifting)
Set the flag indicating whether or not a tensor needs shifting.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
bool needs_shifting() const
Flag indicating whether the tensor has been left aligned by a kernel and therefore needs shifting...
IGCTensor()
Default constructor.