lamppp
|
Low-level data manager for Tensor and TensorImpl. More...
#include <storage.hpp>
Classes | |
class | StorageImpl |
Public Member Functions | |
Storage (size_t byte_size, DeviceType device) | |
void * | data () const noexcept |
size_t | byte_size () const noexcept |
DeviceType | device () const noexcept |
void | resize (size_t nsize) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Storage &obj) |
Low-level data manager for Tensor and TensorImpl.
Storage is what manages the lifetime of the data that Tensor points to, in the form of an array of bytes.
Storage maintains three core properties: