loadWeightsForFrozenLayersByPathTemplates
fun Functional.loadWeightsForFrozenLayersByPathTemplates(hdfFile: HdfFile, kernelDataPathTemplate: String = KERNEL_DATA_PATH_TEMPLATE, biasDataPathTemplate: String = BIAS_DATA_PATH_TEMPLATE)
Content copied to clipboard
Loads weights from hdf5 file created in Keras TensorFlow framework for non-trainable (or frozen) layers only.
NOTE: Weights for trainable layers will not be loaded and will be initialized via default initializers.
Parameters
hdfFile
File in hdf5 file format containing weights of Sequential model.
kernelDataPathTemplate
Template path to kernel weights of the specific layer.
biasDataPathTemplate
Template path to bias weights of the specific layer.