Reputation: 1400
I am deploying my tf model to android, and I just want to ask what are considered as 'const op' in tf? Also, if your going to save you variables into a checkpoint and be saved into an optimized file that will be used in an android app, should you explicitly name all of them? Or does tf automatically assigns a name for all the variables?
Upvotes: 3
Views: 1146
Reputation: 53768
What is 'Const Op' in Tensorflow?
This is an op that manages constants created with tf.constant
(or similar function in another language). Basically, it's just a constant tensor.
Or does tf automatically assigns a name for all the variables?
Tensorflow automatically gives names to the variables, but you should better give the names to those variables that you care about to find them easily later on. Automatic names can be sometimes cryptic and misleading. For instance, gru_def/rnn/gru_cell/gates/kernel
is one of the variables inside a GRU cell and most of the scopes are defined with the library, not in your code.
Or, you might see Placeholder_1
and think that this is the first placeholder in your model, but it would be wrong, because the true first placeholder is Placeholder
, while Placeholder_1
is the second one (in fact, that was a real bug).
Upvotes: 2