‘keras.engine.saving / topology‘ has no attribute ‘load_weights_from_hdf5_group_by_name‘

‘keras.engine.saving / topology‘ has no attribute ‘load_weights_from_hdf5_group_by_name‘_第1张图片

两种报错

saving.load_weights_from_hdf5_group_by_name(f, layers) topology.load_weights_from_hdf5_group_by_name(f, layers)

在 虚拟环境中搜索  C:\ProgramData\Anaconda3\envs\virenv38_TF‘keras.engine.saving / topology‘ has no attribute ‘load_weights_from_hdf5_group_by_name‘_第2张图片

if by_name:

        hdf5_format.load_weights_from_hdf5_group_by_name(

            f, self.layers, skip_mismatch=skip_mismatch)

      else:

        hdf5_format.load_weights_from_hdf5_group(f, self.layers)

 

你可能感兴趣的:(keras)