740a50efc55d175bd95e605d7fc1e037ca640b9b,tensorflowonspark/pipeline.py,,_run_model,#Any#Any#Any#,483

Before Change


      loader.load(sess, args.tag_set.split(","), args.export_dir)
    elif args.model_dir:
      // load graph from a checkpoint
      ckpt = tf.train.latest_checkpoint(args.model_dir)
      assert ckpt, "Invalid model checkpoint path: {}".format(args.model_dir)
      logging.info("===== restoring from checkpoint: {}".format(ckpt + ".meta"))
      saver = tf.train.import_meta_graph(ckpt + ".meta", clear_devices=True)
      saver.restore(sess, ckpt)

After Change


  // get list of input/output tensors (by name)
  if args.signature_def_key:
    input_tensors = [inputs_tensor_info[t].name for t in input_tensor_names]
    output_tensors = [outputs_tensor_info[output_tensor_names[0]].name]
  else:
    input_tensors = [t + ":0" for t in input_tensor_names]
    output_tensors = [t + ":0" for t in output_tensor_names]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 740a50efc55d175bd95e605d7fc1e037ca640b9b
Time: 2019-07-25
Author: leewyang@verizonmedia.com
File Name: tensorflowonspark/pipeline.py
Class Name:
Method Name: _run_model


Project Name: salu133445/musegan
Commit Name: f4811d994f466d3d466efcb755eb1ebf08b02982
Time: 2018-10-24
Author: salu133445@citi.sinica.edu.tw
File Name: musegan/model.py
Class Name: Model
Method Name: load_latest


Project Name: OpenNMT/OpenNMT-tf
Commit Name: bf9c284b3cee06677691f09f49632deaae4792ff
Time: 2019-06-26
Author: guillaume.klein@systrangroup.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: evaluate