// output. TensorFrames does not like that, so we strip out the parts that// are not necessary for the computation at hand.def _stripGraph(self, tf_graph):
input_graph_def = tf_graph.as_graph_def(add_shapes=True)
sess = tf.Session(graph=tf_graph)
return utils.stripAndFreezeGraph(input_graph_def, sess, [self._getFinalOutputOpName()])
def _getOriginalOutputTensorName(self):