Apache Singa
A General Distributed Deep Learning Library
Public Member Functions | List of all members
singa::Block Class Reference

Block represent a chunk of memory (on device or host). More...

#include <common.h>

Public Member Functions

 Block (void *ptr, size_t size, size_t offset=0)
 
void * mutable_data ()
 
const void * data () const
 
size_t size () const
 
size_t offset () const
 
int IncRefCount ()
 
int DecRefCount ()
 
int ref_count () const
 
bool initialized () const
 

Detailed Description

Block represent a chunk of memory (on device or host).


The documentation for this class was generated from the following file: