DeepCL  v4.0.0rc5
Deep convolutional neural networks using OpenCL
 All Classes Functions
Public Member Functions | List of all members
WeightsPersister Class Reference

Use to read/write weights from a NeuralNet. More...

Public Member Functions

publicapi STATIC int getTotalNumWeights (NeuralNet *net)
 
publicapi STATIC void copyNetWeightsToArray (NeuralNet *net, float *target)
 
publicapi STATIC void copyArrayToNetWeights (float const *source, NeuralNet *net)
 

Detailed Description

Use to read/write weights from a NeuralNet.

whilst this class is portable, the weights files created totally are not (ie: endianness) but okish for now... (since it's not like weights files tend to be shared around much, and if they are, then the quickly-written file created by this could be converted by another utility into a portable datafile

Target usage for this class is quickly snapshotting the weights after each epoch. Therefore should be: fast, low IO :-)

Public API

Member Function Documentation

publicapi STATIC int WeightsPersister::getTotalNumWeights ( NeuralNet net)
Public API
publicapi STATIC void WeightsPersister::copyNetWeightsToArray ( NeuralNet net,
float *  target 
)
Public API
publicapi STATIC void WeightsPersister::copyArrayToNetWeights ( float const *  source,
NeuralNet net 
)
Public API

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