loadWeights
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: MutableList<Layer>)
Content copied to clipboard
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.