MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.layers.hdf5.HDF5< T > Class Template Reference

The HDF5 object provides HDF5 dataset support to the HDF5DataLayer. More...

Inheritance diagram for MyCaffe.layers.hdf5.HDF5< T >:
MyCaffe.layers.hdf5.IHDF5Load< T >

Public Member Functions

 HDF5 (CudaDnn< T > cuda, Log log, string strFile)
 The constructor. More...
 
 HDF5 ()
 The constructor used when loading weights into a Net. More...
 
void load_nd_dataset (Blob< T > blob, string strDatasetName, bool bReshape=false, int nMinDim=1, int nMaxDim=int.MaxValue, H5GroupId id=null, bool bAllowSingleItems=false)
 Creates a new dataset from an HDF5 data file. More...
 
void CopyTrainedLayersFromHDF5 (Net< T > net, Log log, string strFile)
 Copy the weights from an HDF5 file into a Net. More...
 
void Dispose ()
 Release all resources uses. More...
 

Detailed Description

The HDF5 object provides HDF5 dataset support to the HDF5DataLayer.

Template Parameters
TSpecifies the base type.

Definition at line 32 of file HDF5.cs.

Constructor & Destructor Documentation

◆ HDF5() [1/2]

MyCaffe.layers.hdf5.HDF5< T >.HDF5 ( CudaDnn< T >  cuda,
Log  log,
string  strFile 
)

The constructor.

Parameters
cudaSpecifies the CudaDnn connection to Cuda.
logSpecifies the Log for output.
strFileSpecifies the HDF5 file to load.

Definition at line 45 of file HDF5.cs.

◆ HDF5() [2/2]

The constructor used when loading weights into a Net.

Definition at line 59 of file HDF5.cs.

Member Function Documentation

◆ CopyTrainedLayersFromHDF5()

void MyCaffe.layers.hdf5.HDF5< T >.CopyTrainedLayersFromHDF5 ( Net< T >  net,
Log  log,
string  strFile 
)

Copy the weights from an HDF5 file into a Net.

Parameters
netSpecifies the destination Net.
logSpecifies the output log.
strFileSpecifies the HDF5 file containing the source weights.

Implements MyCaffe.layers.hdf5.IHDF5Load< T >.

Definition at line 238 of file HDF5.cs.

◆ Dispose()

void MyCaffe.layers.hdf5.HDF5< T >.Dispose ( )

Release all resources uses.

Definition at line 325 of file HDF5.cs.

◆ load_nd_dataset()

void MyCaffe.layers.hdf5.HDF5< T >.load_nd_dataset ( Blob< T >  blob,
string  strDatasetName,
bool  bReshape = false,
int  nMinDim = 1,
int  nMaxDim = int.MaxValue,
H5GroupId  id = null,
bool  bAllowSingleItems = false 
)

Creates a new dataset from an HDF5 data file.

Parameters
blobThe input blob is reshaped to the dataset item shape.
strDatasetNameSpecifies the new dataset name.
bReshapeSpecifies whether to reshape the 'blob' parameter.
nMinDimSpecifies the minimum dimension.
nMaxDimSpecifies the maximum dimension.
idOptional, group ID to use instead of internal file (default = null).
bAllowSingleItemsWhen true single item values are allowed and used to copy across entire blob.

Definition at line 170 of file HDF5.cs.


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