452904c476e721ba22620d494d9222fbb92ff99c,magenta/models/coconet/export_saved_model.py,,main,#Any#,52

Before Change


    raise ValueError(
        "Need to provide a destination directory for the SavedModel.")
  model = lib_graph.load_checkpoint(FLAGS.checkpoint)
  export_saved_model(model, FLAGS.destination)
  tf.logging.info("Exported SavedModel to %s.", FLAGS.destination)


if __name__ == "__main__":

After Change


    model.instantiate_sess_and_restore_checkpoint()
  else:
    model = lib_graph.load_checkpoint(FLAGS.checkpoint)
  tf.logging.info("Loaded graph.")
  lib_saved_model.export_saved_model(model, FLAGS.destination,
                                     [tf.saved_model.tag_constants.SERVING],
                                     FLAGS.use_tf_sampling)
  tf.logging.info("Exported SavedModel to %s.", FLAGS.destination)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/magenta
Commit Name: 452904c476e721ba22620d494d9222fbb92ff99c
Time: 2018-05-09
Author: jacob.howcroft@gmail.com
File Name: magenta/models/coconet/export_saved_model.py
Class Name:
Method Name: main


Project Name: tensorflow/tpu
Commit Name: d2694eacb1fdd698a7629271d43f99acf5e75b34
Time: 2019-01-15
Author: solitarylord@gmail.com
File Name: models/official/amoeba_net/amoeba_net.py
Class Name:
Method Name: main


Project Name: tensorflow/tpu
Commit Name: 36960578e601b73ab44b82a10960e31c05d2465f
Time: 2019-05-13
Author: solitarylord@gmail.com
File Name: models/official/retinanet/retinanet_main.py
Class Name:
Method Name: main