39a106e526e70b5d64bf9f5404311eb490df6ea5,inference_worker.py,,main,#,32

Before Change


        batch_size=server_config.batch_size,
        descriptor_path=FLAGS.descriptor)

    n = dual_net.DualNetwork(FLAGS.model, worker_config)

    outputs = {
        "features": n.sess.graph.get_tensor_by_name("unflatten_features:0"),
        "dummy": n.sess.graph.get_tensor_by_name("put_outputs:0"),
    }
    output = n.sess.run(outputs)

    for f in output["features"]:
        print("---------------------------")
        for r in range(go.N):
            row = ""

After Change


    sess = tf.Session(graph=tf.Graph(), config=config)
    with sess.graph.as_default():
        loop = dual_net.model_inference_worker_fn(worker_config)
        tf.train.Saver().restore(sess, FLAGS.model)

    print("running graph")
    sess.run(loop)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/minigo
Commit Name: 39a106e526e70b5d64bf9f5404311eb490df6ea5
Time: 2018-06-12
Author: tmadams@google.com
File Name: inference_worker.py
Class Name:
Method Name: main


Project Name: rlworkgroup/garage
Commit Name: 3cd1718eece4f3c1cbae6f63cc409ee1e79720c1
Time: 2019-05-10
Author: naeioi@hotmail.com
File Name: garage/experiment/experiment_wrapper.py
Class Name:
Method Name: run_experiment


Project Name: deepchem/deepchem
Commit Name: fec23179223cbde694b1611046221fc07a851824
Time: 2019-04-05
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/tensor_graph.py
Class Name: TensorGraph
Method Name: restore