f93ca5174a1a31c362de0d5a5330f99c77a6ad42,keras/engine/training.py,Model,load_weights,#Model#Any#Any#Any#Any#,2158

Before Change


    if _is_hdf5_filepath(filepath):
      save_format = "h5"
    else:
      try:
        tf.compat.v1.train.NewCheckpointReader(filepath)
        save_format = "tf"
      except tf.errors.DataLossError:
        // The checkpoint is not readable in TensorFlow format. Try HDF5.
        save_format = "h5"
    if save_format == "tf":
      status = self._trackable_saver.restore(filepath, options)
      if by_name:
        raise NotImplementedError(

After Change


          "When calling model.load_weights, skip_mismatch can only be set to "
          "True when by_name is True.")

    filepath, save_format = _detect_save_format(filepath)
    if save_format == "tf":
      status = self._trackable_saver.restore(filepath, options)
      if by_name:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: f93ca5174a1a31c362de0d5a5330f99c77a6ad42
Time: 2020-12-17
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: load_weights


Project Name: autonomio/talos
Commit Name: a5cf5911849412e56788324fddb989eec0d56978
Time: 2019-03-11
Author: mailme@mikkokotila.com
File Name: talos/commands/kerasmodel.py
Class Name: KerasModel
Method Name: _create_input_model


Project Name: streamlit/streamlit
Commit Name: a410b46917e3c34e74f67e6262cfa42e8fc7849c
Time: 2019-02-27
Author: tconkling@gmail.com
File Name: lib/streamlit/image_proto.py
Class Name:
Method Name: marshall_images