Apache SINGA
A distributed deep learning platform .
|
interface of stream I/O, used to serialize data, it is not restricted to only this interface in SaveBinary/LoadBinary mshadow accept all class that implements Read and Write More...
#include <tensor_io.h>
Public Member Functions | |
virtual size_t | Read (void *ptr, size_t size)=0 |
read data from stream More... | |
virtual void | Write (const void *ptr, size_t size)=0 |
write data to stream More... | |
virtual | ~IStream (void) |
virtual destructor | |
interface of stream I/O, used to serialize data, it is not restricted to only this interface in SaveBinary/LoadBinary mshadow accept all class that implements Read and Write
|
pure virtual |
read data from stream
ptr | pointer to memory buffer |
size | size of block |
Implemented in mshadow::utils::FileStream.
|
pure virtual |
write data to stream
ptr | pointer to memory buffer |
size | size of block |
Implemented in mshadow::utils::FileStream.