I have a complex net for which I have created a very simple class for inferencing the model once it is serialised into a frozen graph file.
The thing is that in this file I need to load the variable with his namespace which may end up depending on how I have structured the model. In my case ends up like this:
# Load the input and output node with a singular namespace depending on the model
self.input_node = self.sess.graph.get_tensor_by_name("create_model/mymodelname/input_node:0")
self.output_node = self.sess.graph.get_tensor_by_name("create_model/mymodelname/out/output_node:0")
I would like to give these two nodes an alias before storing it into the model such as they would end up having a common name and then my Class for inferencing could be used as a general purpose Class for fetching the model. In this case I would end up doing something like this:
# Load the input and output node with a general node namespace
self.input_node = self.sess.graph.get_tensor_by_name("input_node:0")
self.output_node = self.sess.graph.get_tensor_by_name("output_node:0")
So is there any option for giving them an alias? I didn't really find anything.
Thank you very much!