Search
 
SCRIPT & CODE EXAMPLE
 

C

Tensorflow: What are the "output_node_names" for freeze_graph.py in the model_with_buckets model?

You can get all of the node names in your model with something like:

node_names = [node.name for node in tf.get_default_graph().as_graph_def().node]
Or with restoring the graph:

saver = tf.train.import_meta_graph(/path/to/meta/graph)
sess = tf.Session()
saver.restore(sess, /path/to/checkpoints)
graph = sess.graph
print([node.name for node in graph.as_graph_def().node])
You may need to filter these to get only your output nodes, or only the nodes that you want, but this can at least help you get the names for a graph that you have already trained and cannot afford to retrain with name='some_name' defined for each node.

Ideally, you want to define a name parameter for each operation or tensor that you are going to want to access later.
Comment

PREVIOUS NEXT
Code Example
C :: esp local control 
C :: block quote in lua 
C :: install lib juicyPixel in haskell 
C :: grep C hello world 
C :: How to declare a string? 
C :: Battlefield4u.com 
C :: hgggggggggggggggg 
C :: creation of a thread 
C :: Greatest common divisor iterative 
C :: how to output in green in c 
C :: #pragma pack(1) in c 
C :: condition ternaire in c 
C :: visa germany algeria 
C :: which one is faster loop or recursive function? 
C :: google sheets transpose new line to table 
C :: function that reverses the content of an array of integers. 
C :: under 
C :: program to merge two strings in c 
C :: reap zombie process in c 
C :: listas enlazadas/ linked lists 
C :: passing an array of unspecified number of variables to a function 
C :: float 
C :: download file by command line windows 
C :: filing in c 
Dart :: TextStyle underline flutter 
Dart :: flutter lock screen to portrait mode 
Dart :: how to change color in container flutter 
Dart :: add bg image to scaffold flutter 
Dart :: close current page flutter 
Dart :: increase text size of Test flutter 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =