Struct CPUBuffer

Inheritance Relationships

Base Type

Struct Documentation

struct CPUBuffer : public spdl::core::Buffer

Contiguous array data on CPU memory.

Public Functions

CPUBuffer(const std::vector<size_t> &shape, ElemClass elem_class, size_t depth, std::shared_ptr<CPUStorage> storage)
virtual void *data() override

Returns the pointer to the head of the data buffer.

Public Members

std::shared_ptr<CPUStorage> storage