17#ifndef __NNCC_CORE_ADT_FEATURE_BUFFER_H__
18#define __NNCC_CORE_ADT_FEATURE_BUFFER_H__
42 virtual T *
base(
void) {
return _buffer.data(); }
43 virtual const T *
base(
void)
const {
return _buffer.data(); }
46 std::vector<T> _buffer;
virtual const T * base(void) const
Buffer(const Shape &shape, const Layout &layout)
const Shape & shape(void) const
uint32_t num_elements(const Shape &shape)
The number of elements of a feature map of a given shape.
Buffer< T > make_buffer(const Shape &shape)