loadWeights

fun GraphTrainableModel.loadWeights(hdfFile: HdfFile)

Loads weights from hdf5 file created in Keras TensorFlow framework.

Parameters

hdfFile

File in hdf5 file format containing weights of the model.

fun GraphTrainableModel.loadWeights(hdfFile: HdfFile, layerList: List<Layer>)

Loads weights from hdf5 file created in Keras TensorFlow framework for pre-defined list of layers.

NOTE: Weights for another layers will not be loaded (should be initialized manually).

Parameters

hdfFile

File in hdf5 file format containing weights of Sequential model.

layerList

List of layers to load weights. Weights for other layers will be initialized by initializer later.