|
lamppp
|
Smart pointer wrapper for tensor data with custom deleter support. More...
#include <data_ptr.hpp>
Public Member Functions | |
| DataPtr (void *data_ptr, const std::function< void(void *)> &dealloc) | |
| void * | data () const |
Public Attributes | |
| std::shared_ptr< void > | ptr |
Smart pointer wrapper for tensor data with custom deleter support.
DataPtr wraps raw pointers with automatic memory management and custom deallocators for different allocation strategies (CPU, CUDA, etc.).