Tannic
A C++ Tensor Library
Loading...
Searching...
No Matches
buffer.hpp File Reference

Memory buffer management for tensor storage. More...

#include <cstddef>
#include "resources.hpp"
Include dependency graph for buffer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tannic::Buffer
 Managed memory buffer with explicit ownership. More...
 

Namespaces

namespace  tannic
 

Detailed Description

Memory buffer management for tensor storage.

Author
Eric Hermosis
Date
2025

Provides a basic memory buffer abstraction that:

  • Manages allocation and ownership of raw memory
  • Supports both host and device memory through environments
  • Enforces move-only semantics for clear ownership
  • Tracks memory region size and location