39a106e526e70b5d64bf9f5404311eb490df6ea5,inference_worker.py,,main,#,32
Before Change
"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
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: dpressel/mead-baseline
Commit Name: 57591a23e73d3b2ca8132589e68c8a480f1686f5
Time: 2020-04-28
Author: dpressel@gmail.com
File Name: baseline/tf/lm/model.py
Class Name: LanguageModelBase
Method Name: load
Project Name: deepchem/deepchem
Commit Name: c96af58e6ab2f85626e51a331e8479da49329f0e
Time: 2017-01-18
Author: joegomes@stanford.edu
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowClassifier
Method Name: predict_proba_on_batch