2ee326e21cd8559c077cef408d32355d56484bb1,examples/convert.py,,export_cnn,#,14
Before Change
output = "cnn.pb"
graph_io.write_graph(frozen, ".", output, as_text=False)
print("saved the frozen graph (ready for inference) at: ", output)
class PredictionInputProvider(tfe.io.InputProvider):
def provide_input(self) -> tf.Tensor:
After Change
pred_node_names = ["output"]
tf.identity(x, name=pred_node_names[0])
with tf.Session() as sess:
constant_graph = graph_util.convert_variables_to_constants(sess,
sess.graph.as_graph_def(),
pred_node_names)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mortendahl/tf-encrypted
Commit Name: 2ee326e21cd8559c077cef408d32355d56484bb1
Time: 2018-10-10
Author: 1278248+morgangiraud@users.noreply.github.com
File Name: examples/convert.py
Class Name:
Method Name: export_cnn
Project Name: arnomoonens/yarll
Commit Name: bb72c5b102a74486036d849b44f80ab3772a18f9
Time: 2018-02-23
Author: arno.moonens@outlook.com
File Name: agents/ppo/dppo_worker.py
Class Name: DPPOWorker
Method Name: run
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