I have 2 ProtoBuf Files, I currently load and forward pass each of them separately, by calling-
out1=session.run(graph1out, feed_dict={graph1inp:inp1})
followed by
final=session.run(graph2out, feed_dict={graph2inp:out1})
where graph1inp and graph1out are input node and output node of graph 1 and similar terminology for graph 2
Now, I want to connect graph1out with graph2inp such that I only have to run graph2out while feeding graph1inp with inp1. In other words connecting the input and output tensors of the 2 involved graphs in such a way that one run is sufficient to run inference on both trained ProtoBuf files.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…