Example #1
0
 def get_tensor(name):
   # When trying to output an input tensor there are no nodes created within
   # the apply scope. So one must look into the input map.
   try:
     return feed_map[name]
   except KeyError:
     return apply_graph.get_tensor_by_name(
         meta_graph_lib.prepend_name_scope(
             name, import_scope=absolute_scope_name))
Example #2
0
 def _get_tensor(tensor_name):
   return tf_v1.get_default_graph().get_tensor_by_name(
       meta_graph_lib.prepend_name_scope(
           tensor_name, import_scope=absolute_scope_name))
Example #3
0
 def _get_tensor(tensor_name):
   return self._graph.get_tensor_by_name(
       meta_graph_lib.prepend_name_scope(tensor_name,
                                         import_scope=absolute_scope_name))